-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Cross-link matrix methods image
and column_space
#33548
Comments
comment:2
I tried to take a look at this, but I couldn't find any mention of row_space in any of the matrix image functions, any of the documentation, or the wiki. Can you clarify the specific method you're talking about? |
This comment has been minimized.
This comment has been minimized.
comment:5
I have updated the ticket to reflect that |
Branch: u/gh-Sandstorm831/33548 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
comment:8
I have replaced row_space() in image method of a matrix to column_space() which I thought the to be wrong initially according to best of my knowledge. Please review and suggest edits if needed |
comment:10
You can't change the behavior of a method like the You could in addition say "see also |
comment:11
For example, you could say "Return the image of the homomorphism defined by right-multiplication by this matrix — that is, return the row space." Then perhaps insert a reference to |
comment:12
I am sorry sir, I misunderstood what the ticket want to convey. When I read about the image of matrices, I came to understand that image of a matrix is defined by its column space only, so I changed things accordingly. But Then I came to know the matrices in Sage act on the right, so as a result of which image of a matrix is its row_space instead of column space. I didn't realised that earlier. As here is a minor documentation addition, I will soon push another commits correcting my mistakes. sorry for any inconvenience. |
comment:14
Sir, please look at my following changes and please let me know if there is any thing else that needs to be done |
comment:15
First, you have to make this change: diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx
index 3830d0d3e9..46481df1bb 100644
--- a/src/sage/matrix/matrix2.pyx
+++ b/src/sage/matrix/matrix2.pyx
@@ -5213,7 +5213,7 @@ cdef class Matrix(Matrix1):
sage: image(B) == B.row_module()
True
- sage: image(B) = B.transpose().column_module()
+ sage: image(B) == B.transpose().column_module()
True
"""
return self.row_module() A first thing to do when trying out any change in Sage is to run doctests on the affected files; in this case, Second, I've already suggested changes like these: diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx
index 3830d0d3e9..63f418bf41 100644
--- a/src/sage/matrix/matrix2.pyx
+++ b/src/sage/matrix/matrix2.pyx
@@ -5189,8 +5189,8 @@ cdef class Matrix(Matrix1):
def image(self):
"""
- Return the image of the homomorphism on rows defined by this
- matrix.
+ Return the image of the homomorphism defined by right
+ multiplication by this matrix: that is, the row-space.
EXAMPLES::
and maybe something like diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx
index 3830d0d3e9..af6be3c43e 100644
--- a/src/sage/matrix/matrix2.pyx
+++ b/src/sage/matrix/matrix2.pyx
@@ -5215,6 +5215,11 @@ cdef class Matrix(Matrix1):
True
sage: image(B) == B.transpose().column_module()
True
+
+ .. SEEALSO::
+
+ :meth:`row_module`, :meth:`column_module`
+
"""
return self.row_module()
|
The
image
method of matrices mentionsrow_module
(=row_space
).It should also mention
column_space
.CC: @slel
Component: linear algebra
Branch/Commit: u/gh-Sandstorm831/33548 @
6d17beb
Issue created by migration from https://trac.sagemath.org/ticket/33548
The text was updated successfully, but these errors were encountered: