Det
Arguments
- self
(Tensor) the input tensor of size
(*, n, n)
where*
is zero or more batch dimensions.
Examples
if (torch_is_installed()) {
A = torch_randn(c(3, 3))
torch_det(A)
A = torch_randn(c(3, 2, 2))
A
A$det()
}
#> torch_tensor
#> -1.5133
#> 3.3801
#> 1.1298
#> [ CPUFloatType{3} ]