det#

Compute the determinant of a tensor.

template<typename OpA>
__MATX_INLINE__ auto matx::det(const OpA &a)#

Computes the determinant by performing an LU factorization of the input, and then calculating the product of diagonal entries of the U factor.

If rank > 2, operations are batched.

Template Parameters:

OpA – Data type of input a tensor or operator

Parameters:

a – Input square tensor or operator of shape ... x n x n

Returns:

Operator that produces the determinant output of shape .... This means rank 2 inputs will have an output shape of {}, while higher dimensional inputs will have output shape matching the batch dimension(s).

Examples#

(detv = det(Av)).run(this->exec);