8000 Fix terminology within `linalg.slogdet` docs · pytorch/pytorch@4cd315e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cd315e

Browse files
committed
Fix terminology within linalg.slogdet docs
This issue was raised in data-apis/array-api#567 ghstack-source-id: e9cd318 Pull Request resolved: #91129
1 parent 2a37ba8 commit 4cd315e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch/linalg/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@
371371
372372
.. seealso::
373373
374-
:func:`torch.linalg.slogdet` computes the sign (resp. angle) and natural logarithm of the
375-
absolute value of the determinant of real-valued (resp. complex) square matrices.
374+
:func:`torch.linalg.slogdet` computes the sign and natural logarithm of the absolute
375+
value of the determinant of square matrices.
376376
377377
Args:
378378
A (Tensor): tensor of shape `(*, n, n)` where `*` is zero or more batch dimensions.
@@ -396,7 +396,7 @@
396396
397397
Computes the sign and natural logarithm of the absolute value of the determinant of a square matrix.
398398
399-
For complex :attr:`A`, it returns the angle and the natural logarithm of the modulus of the
399+
For complex :attr:`A`, it returns the sign and the natural logarithm of the modulus of the
400400
determinant, that is, a logarithmic polar decomposition of the determinant.
401401
402402
The determinant can be recovered as `sign * exp(logabsdet)`.

0 commit comments

Comments
 (0)
0