Skip to content

Commit

Permalink
DOC:linalg: Remove references to removed pinv2 function (scipy#16247)
Browse files Browse the repository at this point in the history
Co-authored-by: Pamphile Roy <[email protected]>
  • Loading branch information
ilayn and tupui authored May 23, 2022
1 parent 16f0795 commit 94297f6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions doc/source/tutorial/linalg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,8 @@ where :math:`\mathbf{A}^{\dagger}` is called the pseudo-inverse of
The command :obj:`linalg.lstsq` will solve the linear least-squares
problem for :math:`\mathbf{c}` given :math:`\mathbf{A}` and
:math:`\mathbf{y}` . In addition, :obj:`linalg.pinv` or
:obj:`linalg.pinv2` (uses a different method based on singular value
decomposition) will find :math:`\mathbf{A}^{\dagger}` given
:math:`\mathbf{A}.`
:math:`\mathbf{y}` . In addition, :obj:`linalg.pinv` will find
:math:`\mathbf{A}^{\dagger}` given :math:`\mathbf{A}.`

The following example and figure demonstrate the use of
:obj:`linalg.lstsq` and :obj:`linalg.pinv` for solving a data-fitting
Expand Down Expand Up @@ -402,11 +400,9 @@ Generalized inverse
^^^^^^^^^^^^^^^^^^^

The generalized inverse is calculated using the command
:obj:`linalg.pinv` or :obj:`linalg.pinv2`. These two commands differ
in how they compute the generalized inverse. The first uses the
linalg.lstsq algorithm, while the second uses singular value
decomposition. Let :math:`\mathbf{A}` be an :math:`M\times N` matrix,
then if :math:`M>N`, the generalized inverse is
:obj:`linalg.pinv`. Let :math:`\mathbf{A}` be an
:math:`M\times N` matrix, then if :math:`M>N`, the generalized
inverse is

.. math::
Expand Down

0 comments on commit 94297f6

Please sign in to comment.