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, 07 Jul 2014 14:33:53 +0200Moore-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 08:02:17 +0200https://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 14:33:53 +0200https://ask.sagemath.org/question/23244/moore-penrose-inverse-with-sage/?answer=23249#post-id-23249