ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 01 Jun 2020 00:52:22 +0200Finding basis of image of Matrixhttps://ask.sagemath.org/question/51662/finding-basis-of-image-of-matrix/ Is there a command that explicitly gives me the vectors for the image given a matrix M? If not, lets suppose I have the matrix in row echelon, N. So I create an empty list. Basically, I want to say while i< # of rows, if row i of row echelon form matrix N has a 1, put M[i] in list. But I don't know how to say if a row has a 1( a pivot).
P.s., yes I need the rows. My matrix is like transposed.whatupmattMon, 01 Jun 2020 00:52:22 +0200https://ask.sagemath.org/question/51662/echelon_form not giving reduced echelon formhttps://ask.sagemath.org/question/35819/echelon_form-not-giving-reduced-echelon-form/According to the document(emphasis mine):
> echelon_form(algorithm='default', cutoff=0, **kwds)
>
> Return the echelon form of self.
>
> **OUTPUT**:
>
> The *reduced row echelon form* of self, as an immutable matrix.
Here is what I was doing:
sage: A = Matrix([[1,0,3,1,2],[-1,3,0,-1,1],[2,1,7,2,5],[4,2,14,0,6]])
sage: A.echelon_form()
[1 0 3 1 2]
[0 1 1 0 1]
[0 0 0 4 4]
[0 0 0 0 0]
While the result is in row echelon form, it's not in **reduced** row echelon form. What I expect is something like this:
[1 0 3 0 1]
[0 1 1 0 1]
[0 0 0 1 1]
[0 0 0 0 0]
Also, if this is merely a documentation bug, how can I get the reduced row echelon form of a matrix?sunqingyaoWed, 30 Nov 2016 15:24:42 +0100https://ask.sagemath.org/question/35819/