Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

lgamma,_lgamma_r - Log gamma functions.

Authors

TheKhronosGroup

Description

       Returns the natural logarithm of the absolute value of the gamma function. The sign of the gamma function
       is returned in the signp argument of the lgamma_r.

       An application that wants to use half and halfn types will need to include the #pragma OPENCL EXTENSION
       cl_khr_fp16(3clc) : enable directive. If extended with cl_khr_fp16(3clc), generic type name gentype also
       includes half and half{2|3|4|8|16}.

Name

       lgamma,_lgamma_r - Log gamma functions.

       gentypelgamma(gentypex);floatnlgamma_r(floatnx,__globalintn*signp);floatnlgamma_r(floatnx,__localintn*signp);floatnlgamma_r(floatnx,__privateintn*signp);floatlgamma_r(floatx,__globalint*signp);floatlgamma_r(floatx,__localint*signp);floatlgamma_r(floatx,__privateint*signp);doublenlgamma_r(doublenx,__globalintn*signp);doublenlgamma_r(doublenx,__localintn*signp);doublenlgamma_r(doublenx,__privateintn*signp);doublelgamma_r(doublex,__globalint*signp);doublelgamma_r(doublex,__localint*signp);doublelgamma_r(doublex,__privateint*signp);halfnlgamma_r(halfnx,__globalintn*signp);halfnlgamma_r(halfnx,__localintn*signp);halfnlgamma_r(halfnx,__privateintn*signp);halflgamma_r(halfx,__globalint*signp);halflgamma_r(halfx,__localint*signp);halflgamma_r(halfx,__privateint*signp);

Notes

        1. OpenCL Specification
           page 244, section 6.12.2 - Math Functions

The Khronos Group                                  11/18/2024                             LGAMMA,LGAMMA_R(3clc)

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also