Logdet
Source:R/gen-namespace-docs.R
, R/gen-namespace-examples.R
, R/gen-namespace.R
torch_logdet.Rd
Logdet
Arguments
- self
(Tensor) the input tensor of size
(*, n, n)
where*
is zero or more batch dimensions.
Note
logdet(input) -> Tensor
Calculates log determinant of a square matrix or batches of square matrices.
Examples
if (torch_is_installed()) {
A = torch_randn(c(3, 3))
torch_det(A)
torch_logdet(A)
A
A$det()
A$det()$log()
}
#> torch_tensor
#> nan
#> [ CPUFloatType{} ]