Learn R Programming

torch (version 0.8.1)

torch_slogdet: Slogdet

Description

Slogdet

Usage

torch_slogdet(self)

Arguments

self

(Tensor) the input tensor of size (*, n, n) where * is zero or more batch dimensions.

slogdet(input) -> (Tensor, Tensor)

Calculates the sign and log absolute value of the determinant(s) of a square matrix or batches of square matrices.

Examples

Run this code
if (torch_is_installed()) {

A = torch_randn(c(3, 3))
A
torch_det(A)
torch_logdet(A)
torch_slogdet(A)
}

Run the code above in your browser using DataLab