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.8072
#> -0.1443
#> -0.0411
#> [ 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.8072
#> -0.1443
#> -0.0411
#> [ CPUFloatType{3} ]