mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix terminology within linalg.slogdet
docs (#91129)
This issue was raised in https://github.com/data-apis/array-api/pull/567 Pull Request resolved: https://github.com/pytorch/pytorch/pull/91129 Approved by: https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
a5eb564ba4
commit
0210d508cc
@ -371,8 +371,8 @@ the output has the same batch dimensions.
|
||||
|
||||
.. seealso::
|
||||
|
||||
:func:`torch.linalg.slogdet` computes the sign (resp. angle) and natural logarithm of the
|
||||
absolute value of the determinant of real-valued (resp. complex) square matrices.
|
||||
:func:`torch.linalg.slogdet` computes the sign and natural logarithm of the absolute
|
||||
value of the determinant of square matrices.
|
||||
|
||||
Args:
|
||||
A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions.
|
||||
@ -396,7 +396,7 @@ linalg.slogdet(A, *, out=None) -> (Tensor, Tensor)
|
||||
|
||||
Computes the sign and natural logarithm of the absolute value of the determinant of a square matrix.
|
||||
|
||||
For complex :attr:`A`, it returns the angle and the natural logarithm of the modulus of the
|
||||
For complex :attr:`A`, it returns the sign and the natural logarithm of the modulus of the
|
||||
determinant, that is, a logarithmic polar decomposition of the determinant.
|
||||
|
||||
The determinant can be recovered as `sign * exp(logabsdet)`.
|
||||
|
Reference in New Issue
Block a user