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.Thu, 09 Feb 2023 00:38:51 +0100Is it no longer possible to calculate SVD in sage?https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/ I recently noticed that the property `.SVD()` is no longer available for matrices defined over the `RDF` ring.
Is it no longer possible to calculate singular value decomposition in sage?Wed, 08 Feb 2023 18:32:57 +0100https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/Comment by John Palmieri for <p>I recently noticed that the property <code>.SVD()</code> is no longer available for matrices defined over the <code>RDF</code> ring. </p>
<p>Is it no longer possible to calculate singular value decomposition in sage?</p>
https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/?comment=66302#post-id-66302That makes sense. I think you could also do `A.dense_matrix().SVD()`.Thu, 09 Feb 2023 00:38:51 +0100https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/?comment=66302#post-id-66302Comment by more_weight for <p>I recently noticed that the property <code>.SVD()</code> is no longer available for matrices defined over the <code>RDF</code> ring. </p>
<p>Is it no longer possible to calculate singular value decomposition in sage?</p>
https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/?comment=66301#post-id-66301Thanks for the reply. Yes, your mwe works.
I think my issue is that my matrix was originally defined as a "sparse" matrix over `RDF` and therefore I guess does not have the `SVD` method. Running `A=matrix(RDF, A.nrows(), A.ncols(), A._list())` fixes the issue. Thanks!Thu, 09 Feb 2023 00:22:00 +0100https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/?comment=66301#post-id-66301Comment by John Palmieri for <p>I recently noticed that the property <code>.SVD()</code> is no longer available for matrices defined over the <code>RDF</code> ring. </p>
<p>Is it no longer possible to calculate singular value decomposition in sage?</p>
https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/?comment=66300#post-id-66300For me, `m = matrix(RDF,4,range(1,17)); m.SVD()` works in the latest Sage. Can you provide more details? What version of Sage, what is not working for you, etc.?Wed, 08 Feb 2023 22:28:01 +0100https://ask.sagemath.org/question/66289/is-it-no-longer-possible-to-calculate-svd-in-sage/?comment=66300#post-id-66300