powered by
Det
torch_det(self)
(Tensor) the input tensor of size (*, n, n) where * is zero or more batch dimensions.
(*, n, n)
*
Calculates determinant of a square matrix or batches of square matrices.
if (torch_is_installed()) { A = torch_randn(c(3, 3)) torch_det(A) A = torch_randn(c(3, 2, 2)) A A$det() }
Run the code above in your browser using DataLab