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.1237
#> -0.9570
#> 0.3795
#> [ 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.1237
#> -0.9570
#> 0.3795
#> [ CPUFloatType{3} ]