tf.linalg.det

Computes the determinant of one or more square matrices.

tf.linalg.det(
    input, name=None
)

The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. The output is a tensor containing the determinants for all input submatrices [..., :, :].

Args:

Returns:

A Tensor. Has the same type as input.