Skip to content
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

Specify how to obtain all inverses #1835

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

albinahlback
Copy link
Contributor

@albinahlback
Copy link
Contributor Author

By the way, I see there is a discrepancy with spacing in Latex code. In this docstring it is written n\times m, but in diagonal_matrix, for instance, it is written as m \times n. For me it is easier to read the latter.

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.13%. Comparing base (5bcbb44) to head (2c1675e).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1835      +/-   ##
==========================================
+ Coverage   88.12%   88.13%   +0.01%     
==========================================
  Files         119      119              
  Lines       29982    29982              
==========================================
+ Hits        26423    26426       +3     
+ Misses       3559     3556       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/Matrix.jl Outdated Show resolved Hide resolved
src/Matrix.jl Outdated Show resolved Hide resolved
@@ -3558,6 +3558,8 @@ If `side` is `:right` and `flag` is true, $B$ is the right inverse of $A$
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).
"""
function is_invertible_with_inverse(A::MatrixElem{T}; side::Symbol = :left) where {T <: RingElement}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an issue of this PR, but for the record: I am surprised that this function can do strictly more (namely handle non-square matrices) than its is_invertible sibling.

src/Matrix.jl Outdated Show resolved Hide resolved
In docstring for `is_invertible_with_inverse`.

Co-authored-by: Max Horn <max@quendi.de>
Co-authored-by: Tommy Hofmann <thofma@gmail.com>
@albinahlback
Copy link
Contributor Author

Should be ready to go!

@thofma thofma enabled auto-merge (squash) October 7, 2024 19:15
src/Matrix.jl Outdated Show resolved Hide resolved
@fingolfin fingolfin merged commit c6f2611 into Nemocas:master Oct 7, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants