Computes the natural logarithm of the absolute value of gamma function for vector elements.
FORTRAN:
call vslgamma( n, a, y )
call vmslgamma( n, a, y, mode )
call vdlgamma( n, a, y )
call vmdlgamma( n, a, y, mode )
C:
vsLGamma( n, a, y );
vmsLGamma( n, a, y, mode );
vdLGamma( n, a, y );
vmdLGamma( n, a, y, mode );
Name |
Type |
Description |
---|---|---|
n |
FORTRAN 77: INTEGER Fortran 90: INTEGER, INTENT(IN) C: const int |
Specifies the number of elements to be calculated. |
a |
FORTRAN 77: REAL for vslgamma, vmslgamma DOUBLE PRECISION for vdlgamma, vmdlgamma Fortran 90: REAL, INTENT(IN) for vslgamma, vmslgamma DOUBLE PRECISION, INTENT(IN) for vdlgamma, vmdlgamma C: const float* for vsLGamma, vmsLGamma const double* for vdLGamma, vmdLGamma |
FORTRAN: Array that specifies the input vector a. C: Pointer to an array that contains the input vector a. |
mode |
FORTRAN 77: INTEGER*8 Fortran 90: INTEGER(KIND=8), INTENT(IN) C: const MKL_INT64 |
Overrides global VML mode setting for this function call. See vmlSetMode for possible values and their description. |
Name |
Type |
Description |
---|---|---|
y |
FORTRAN 77: REAL for vslgamma, vmslgamma DOUBLE PRECISION for vdlgamma, vmdlgamma Fortran 90: REAL, INTENT(OUT) for vslgamma, vmslgamma DOUBLE PRECISION, INTENT(OUT) for vdlgamma, vmdlgamma C: float* for vsLGamma, vmsLGamma double* for vdLGamma, vmdLGamma |
FORTRAN: Array that specifies the output vector y. C: Pointer to an array that contains the output vector y. |
The v?LGamma function computes the natural logarithm of the absolute value of gamma function for elements of the input vector a and writes them to the output vector y. Precision overflow thresholds for the v?LGamma function are beyond the scope of this document. If the result does not meet the target precision, the function raises the OVERFLOW exception and sets the VML Error Status to VML_STATUS_OVERFLOW.