A high-performance general-purpose compute library

Find the determinant of the input matrix. More...

Functions

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

Detailed Description

Find the determinant of the input matrix.

Note
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 for finding the determinant of a matrix.

Parameters
[out]det_realwill contain the real part of the determinant of in
[out]det_imagwill contain the imaginary part of the determinant of in
[in]inis input matrix

◆ det()

T det ( const array in)

C++ Interface for finding the determinant of a matrix.

Parameters
[in]inis input matrix
Returns
the determinant of the matrix