[Numpy-discussion] Reduced row echelon form
Thu Nov 20 06:28:45 CST 2008
Excellent, thank you all for your input. I don't actually have a specific
problem that I need it for I just wanted to be able to work through some
book examples. I'll take a look at Sage and Sympy.
On Wed, Nov 19, 2008 at 10:14 AM, Stéfan van der Walt <firstname.lastname@example.org>wrote:
> Hi Robert,
> 2008/11/18 Robert Young <email@example.com>:
> > Is there a method in NumPy that reduces a matrix to it's reduced row
> > form? I'm brand new to both NumPy and linear algebra, and I'm not quite
> > where to look.
> I use the Sympy package. It is small, easy to install, runs on pure
> Python, and gets the job done:
> >>> x = np.random.random((3,3))
> >>> import sympy
> >>> sympy.Matrix(x).rref()
> ([1, 0, 0]
> [0, 1, 0]
> [0, 0, 1], [0, 1, 2])
> If you are interested, I can also provide you with a version that runs
> under pure NumPy, using the LU-decomposition.
> Numpy-discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion