<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, construct matrix of singular values</title>
    <link>http://www.mapleprimes.com/questions/125197-Construct-Matrix-Of-Singular-Values</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 10:50:22 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 10:50:22 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, construct matrix of singular values</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, construct matrix of singular values</title>
      <link>http://www.mapleprimes.com/questions/125197-Construct-Matrix-Of-Singular-Values</link>
    </image>
    <item>
      <title>No way at all</title>
      <link>http://www.mapleprimes.com/questions/125197-Construct-Matrix-Of-Singular-Values?ref=Feed:MaplePrimes:construct matrix of singular values:Comments#answer125199</link>
      <itunes:summary>&lt;p&gt;The singular values of a matrix do not determinate its entries. For example,&lt;br&gt;&amp;gt; with(LinearAlgebra);&lt;br&gt;&amp;gt; A := Matrix(2, 2, [[1, 2], [1, 2]]);&lt;br&gt;Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 1, (2, 2) = 2})&lt;br&gt;&amp;gt;SingularValues(A);&lt;br&gt;Vector(2, {(1) = 0, (2) = sqrt(10)})&lt;br&gt;&amp;gt;B := Matrix(2, 2, [[0, 0], [0, sqrt(10)]]);&lt;br&gt;&amp;gt;SingularValues(B);&lt;br&gt;Vector(2, {(1) = 0, (2) = sqrt(10)})&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit.&lt;/strong&gt; SingularValues(A,list); was replaced by SingularValues(A); .&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The singular values of a matrix do not determinate its entries. For example,&lt;br&gt;&amp;gt; with(LinearAlgebra);&lt;br&gt;&amp;gt; A := Matrix(2, 2, [[1, 2], [1, 2]]);&lt;br&gt;Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 1, (2, 2) = 2})&lt;br&gt;&amp;gt;SingularValues(A);&lt;br&gt;Vector(2, {(1) = 0, (2) = sqrt(10)})&lt;br&gt;&amp;gt;B := Matrix(2, 2, [[0, 0], [0, sqrt(10)]]);&lt;br&gt;&amp;gt;SingularValues(B);&lt;br&gt;Vector(2, {(1) = 0, (2) = sqrt(10)})&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit.&lt;/strong&gt; SingularValues(A,list); was replaced by SingularValues(A); .&lt;/p&gt;</description>
      <guid>125199</guid>
      <pubDate>Sun, 28 Aug 2011 09:50:51 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>Right and left singular vectors</title>
      <link>http://www.mapleprimes.com/questions/125197-Construct-Matrix-Of-Singular-Values?ref=Feed:MaplePrimes:construct matrix of singular values:Comments#answer125201</link>
      <itunes:summary>&lt;p&gt;In the help page for SingularValues you find:&lt;/p&gt;
&lt;p&gt;"The singular values S together with the left singular Vectors as columns of Matrix U and the right singular Vectors as columns of Matrix Vt satisfy &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (U . SS) . Vt = A&lt;br&gt;. Matrix SS has the entries of S along its main diagonal."&lt;/p&gt;
&lt;p&gt;Example:&lt;br&gt;restart;&lt;br&gt;with(LinearAlgebra):&lt;br&gt;A := RandomMatrix(5,3,datatype=float);&lt;br&gt;S,U,Vt:=SingularValues(A,output=['S','U','Vt']);&lt;br&gt;S1:=DiagonalMatrix(S[1..3],5,3);&lt;br&gt;U.S1.Vt;&lt;br&gt;Equal(evalf(%),A);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;In the help page for SingularValues you find:&lt;/p&gt;
&lt;p&gt;"The singular values S together with the left singular Vectors as columns of Matrix U and the right singular Vectors as columns of Matrix Vt satisfy &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (U . SS) . Vt = A&lt;br&gt;. Matrix SS has the entries of S along its main diagonal."&lt;/p&gt;
&lt;p&gt;Example:&lt;br&gt;restart;&lt;br&gt;with(LinearAlgebra):&lt;br&gt;A := RandomMatrix(5,3,datatype=float);&lt;br&gt;S,U,Vt:=SingularValues(A,output=['S','U','Vt']);&lt;br&gt;S1:=DiagonalMatrix(S[1..3],5,3);&lt;br&gt;U.S1.Vt;&lt;br&gt;Equal(evalf(%),A);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>125201</guid>
      <pubDate>Sun, 28 Aug 2011 10:34:13 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>DiagonalMatrix</title>
      <link>http://www.mapleprimes.com/questions/125197-Construct-Matrix-Of-Singular-Values?ref=Feed:MaplePrimes:construct matrix of singular values:Comments#answer125202</link>
      <itunes:summary>&lt;p&gt;Maybe I read your question differently from others, but... are you just asking how to get S as a Matrix instead of a Vector?&lt;/p&gt;
&lt;pre&gt;
# For A being an mxn Matrix, with S the Vector of singular values returned,
# then the DiagonalMatrix command can turn that S into a Matrix with the
# singular values along the main diagonal.

# eg.

LinearAlgebra:-DiagonalMatrix(S[1..min(m,n)],m,n);

&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Maybe I read your question differently from others, but... are you just asking how to get S as a Matrix instead of a Vector?&lt;/p&gt;
&lt;pre&gt;
# For A being an mxn Matrix, with S the Vector of singular values returned,
# then the DiagonalMatrix command can turn that S into a Matrix with the
# singular values along the main diagonal.

# eg.

LinearAlgebra:-DiagonalMatrix(S[1..min(m,n)],m,n);

&lt;/pre&gt;</description>
      <guid>125202</guid>
      <pubDate>Sun, 28 Aug 2011 11:01:16 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
  </channel>
</rss>