Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/array_api_stubs/_2022_12/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ def pinv(x: array, /, *, rtol: Optional[Union[float, array]] = None) -> array:
is a singular decomposition of :math:`A`, then

.. math::
A^{+} = U \Sigma^{+} V^H
A^{+} = V \Sigma^{+} U^H

where :math:`U` and :math:`V^H` are orthogonal matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then a diagonal matrix consisting of the reciprocals of :math:`A`'s singular values, leaving zeros in place. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.
where :math:`U` and :math:`V` are unitary matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then the transpose of :math:`\Sigma` with nonzero diagonal entries replaced by their reciprocals. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.

When ``x`` is a stack of matrices, the function must compute the pseudo-inverse for each matrix in the stack.

Expand Down
4 changes: 2 additions & 2 deletions src/array_api_stubs/_2023_12/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ def pinv(x: array, /, *, rtol: Optional[Union[float, array]] = None) -> array:
is a singular decomposition of :math:`A`, then

.. math::
A^{+} = U \Sigma^{+} V^H
A^{+} = V \Sigma^{+} U^H

where :math:`U` and :math:`V^H` are orthogonal matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then a diagonal matrix consisting of the reciprocals of :math:`A`'s singular values, leaving zeros in place. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.
where :math:`U` and :math:`V` are unitary matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then the transpose of :math:`\Sigma` with nonzero diagonal entries replaced by their reciprocals. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.

When ``x`` is a stack of matrices, the function must compute the pseudo-inverse for each matrix in the stack.

Expand Down
4 changes: 2 additions & 2 deletions src/array_api_stubs/_2024_12/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ def pinv(x: array, /, *, rtol: Optional[Union[float, array]] = None) -> array:
is a singular decomposition of :math:`A`, then

.. math::
A^{+} = U \Sigma^{+} V^H
A^{+} = V \Sigma^{+} U^H

where :math:`U` and :math:`V^H` are orthogonal matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then a diagonal matrix consisting of the reciprocals of :math:`A`'s singular values, leaving zeros in place. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.
where :math:`U` and :math:`V` are unitary matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then the transpose of :math:`\Sigma` with nonzero diagonal entries replaced by their reciprocals. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.

When ``x`` is a stack of matrices, the function must compute the pseudo-inverse for each matrix in the stack.

Expand Down
4 changes: 2 additions & 2 deletions src/array_api_stubs/_2025_12/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ def pinv(x: array, /, *, rtol: Optional[Union[float, array]] = None) -> array:
is a singular decomposition of :math:`A`, then

.. math::
A^{+} = U \Sigma^{+} V^H
A^{+} = V \Sigma^{+} U^H

where :math:`U` and :math:`V^H` are orthogonal matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then a diagonal matrix consisting of the reciprocals of :math:`A`'s singular values, leaving zeros in place. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.
where :math:`U` and :math:`V` are unitary matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then the transpose of :math:`\Sigma` with nonzero diagonal entries replaced by their reciprocals. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.

When ``x`` is a stack of matrices, the function must compute the pseudo-inverse for each matrix in the stack.

Expand Down
4 changes: 2 additions & 2 deletions src/array_api_stubs/_draft/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ def pinv(x: array, /, *, rtol: Optional[Union[float, array]] = None) -> array:
is a singular decomposition of :math:`A`, then

.. math::
A^{+} = U \Sigma^{+} V^H
A^{+} = V \Sigma^{+} U^H

where :math:`U` and :math:`V^H` are orthogonal matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then a diagonal matrix consisting of the reciprocals of :math:`A`'s singular values, leaving zeros in place. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.
where :math:`U` and :math:`V` are unitary matrices, :math:`\Sigma` is a diagonal matrix consisting of :math:`A`'s singular values, and :math:`\Sigma^{+}` is then the transpose of :math:`\Sigma` with nonzero diagonal entries replaced by their reciprocals. During numerical computation, only elements larger than a small tolerance are considered nonzero, and all others replaced by zeros.

When ``x`` is a stack of matrices, the function must compute the pseudo-inverse for each matrix in the stack.

Expand Down
Loading