View source: R/gen-namespace.R
torch_det | R Documentation |
Det
torch_det(self)
self |
(Tensor) the input tensor of size |
Calculates determinant of a square matrix or batches of square matrices.
Backward through `det` internally uses SVD results when `input` is not invertible. In this case, double backward through `det` will be unstable in when `input` doesn't have distinct singular values. See `~torch.svd` for details.
if (torch_is_installed()) {
A = torch_randn(c(3, 3))
torch_det(A)
A = torch_randn(c(3, 2, 2))
A
A$det()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.