Det
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
#> -0.4804
#> -0.1249
#> -0.6911
#> [ CPUFloatType{3} ]
Det
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
#> -0.4804
#> -0.1249
#> -0.6911
#> [ CPUFloatType{3} ]