oneflow.linalg.det

oneflow.linalg.det(A)

Computes the determinant of a square matrix.

Supports input of float, double dtypes. Also supports batches of matrices, and if A is a batch of matrices then the output has the same batch dimensions.

The interface is consistent with PyTorch.

The documentation is referenced from: https://pytorch.org/docs/1.10/generated/torch.linalg.det.html

Parameters

A (Tensor) – tensor of shape (*, n, n) where * is zero or more batch dimensions.

Returns

the output Tensor.

Return type

oneflow.Tensor

Warning

Currently, only CUDA11 and above versions are supported.