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
#> 1.6516
#> 2.0722
#> -1.1292
#> [ 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
#> 1.6516
#> 2.0722
#> -1.1292
#> [ CPUFloatType{3} ]