A high-performance general-purpose compute library

Find the determinant of a matrix. More...

Functions

template<typename T >
det (const array &in)
 C++ Interface to find the determinant of a matrix. More...
 
AFAPI af_err af_det (double *det_real, double *det_imag, const af_array in)
 C Interface to find the determinant of a matrix. More...
 

Detailed Description

Find the determinant of a matrix.

This function requires scratch space equal to the input array.


Function Documentation

◆ af_det()

AFAPI af_err af_det ( double *  det_real,
double *  det_imag,
const af_array  in 
)

C Interface to find the determinant of a matrix.

Parameters
[out]det_realreal part of the determinant
[out]det_imagimaginary part of the determinant
[in]ininput matrix
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ det()

T det ( const array in)

C++ Interface to find the determinant of a matrix.

Parameters
[in]ininput matrix
Returns
determinant