ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 07 Jul 2014 07:33:53 -0500Moore-penrose-inverse with Sage?https://ask.sagemath.org/question/23244/moore-penrose-inverse-with-sage/ How to compute the moore-penrose inverse of a matrix?
What I have found is using Scipy (or Numpy):
M = matrix(2,2,(1,2,2,4))
from scipy import linalg
matrix(linalg.pinv(M))
Any other way in Sage?Mon, 07 Jul 2014 01:02:17 -0500https://ask.sagemath.org/question/23244/moore-penrose-inverse-with-sage/Answer by kcrisman for <p>How to compute the moore-penrose inverse of a matrix?</p>
<p>What I have found is using Scipy (or Numpy):</p>
<pre><code>M = matrix(2,2,(1,2,2,4))
from scipy import linalg
matrix(linalg.pinv(M))
</code></pre>
<p>Any other way in Sage?</p>
https://ask.sagemath.org/question/23244/moore-penrose-inverse-with-sage/?answer=23249#post-id-23249I don't think there is anything else currently in Sage. See [this ask.sagemath question](http://ask.sagemath.org/question/10643/how-quickly-minimizing-mx-v-numerically/).Mon, 07 Jul 2014 07:33:53 -0500https://ask.sagemath.org/question/23244/moore-penrose-inverse-with-sage/?answer=23249#post-id-23249