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.1028
#> -1.4062
#> 0.1581
#> [ 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.1028
#> -1.4062
#> 0.1581
#> [ CPUFloatType{3} ]