8000 Fix terminology within `linalg.slogdet` docs (#91129) · pytorch/pytorch@0210d50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0210d50

Browse files
lezcanopytorchmergebot
authored andcommitted
Fix terminology within linalg.slogdet docs (#91129)
This issue was raised in data-apis/array-api#567 Pull Request resolved: #91129 Approved by: https://github.com/kit1980
1 parent a5eb564 commit 0210d50

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