8000 Add complex number support to `linalg.slogdet` by kgryte · Pull Request #567 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Add complex number support to linalg.slogdet #567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix stray backtick
  • Loading branch information
kgryte committed Dec 13, 2022
commit d9d01caec446d8b578897851a6487140b3c7097b
2 changes: 1 addition & 1 deletion spec/API_specification/array_api/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def slogdet(x: array, /) -> Tuple[array, array]:
a namedtuple (``sign``, ``logabsdet``) whose

- first element must have the field name ``sign`` and must be an array containing a number representing the sign of the determinant for each square matrix. Must have the same data type as ``x``.
- second element must have the field name ``logabsdet`` and must be an array containing the natural logarithm of the absolute value of the determinant for each square matrix. If ``x`` is real-valued, the returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`. If ``x`` is complex`, the returned array must have a real-valued floating-point data type having the same precision as ``x`` (e.g., if ``x`` is ``complex64``, ``logabsdet`` must have a ``float32`` data type).
- second element must have the field name ``logabsdet`` and must be an array containing the natural logarithm of the absolute value of the determinant for each square matrix. If ``x`` is real-valued, the returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`. If ``x`` is complex, the returned array must have a real-valued floating-point data type having the same precision as ``x`` (e.g., if ``x`` is ``complex64``, ``logabsdet`` must have a ``float32`` data type).

Each returned array must have shape ``shape(x)[:-2]``.
"""
Expand Down
0