Skip to content

Commit

Permalink
Update src/Matrix.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <max@quendi.de>
  • Loading branch information
albinahlback and fingolfin authored Oct 7, 2024
1 parent 1999926 commit 9ca1b3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3559,7 +3559,10 @@ i.e. $AB$ is the $n\times n$ unit matrix. If `side` is `:left` and `flag` is
true, $B$ is the left inverse of $A$ i.e. $BA$ is the $m\times m$ unit matrix.
If `flag` is false, no right or left inverse exists.
To get the space of all inverses, combine with [`nullspace`](@ref).
To get the space of all inverses, note that if $B$ and $C$ are
both right inverses, then $A(B-C)=0$, and similar for left inverses.
Hence from one inverse one can find all by making suitable use of
[`nullspace`](@ref).
"""
function is_invertible_with_inverse(A::MatrixElem{T}; side::Symbol = :left) where {T <: RingElement}
if (side == :left && nrows(A) < ncols(A)) || (side == :right && ncols(A) < nrows(A))
Expand Down

0 comments on commit 9ca1b3d

Please sign in to comment.