Difference between revisions of "ApCoCoA-1:Num.SingularValues"
From ApCoCoAWiki
(Added SingularValues command) |
m (Bot: Category moved) |
||
Line 40: | Line 40: | ||
<key>singularvalues</key> | <key>singularvalues</key> | ||
<key>num.singularvalues</key> | <key>num.singularvalues</key> | ||
− | <wiki-category>Package_numerical</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_numerical</wiki-category> |
</command> | </command> |
Revision as of 16:36, 2 October 2020
Num.SingularValues
Computes the singular values of a matrix.
Syntax
Num.SVD(A:MAT):[S:LIST]
Description
Please note: The function(s) explained on this page is/are using the ApCoCoAServer. You will have to start the ApCoCoAServer in order to use it/them.
This command computes the singular values of the given matrix A.
@param A The matrix we want to analyze.
@return A list containing the singular values of A.
Example
D:=[[1,2,7,18],[2,4,9,12],[23,8,9,10]]; Dec(Num.SingularValues(D),3); -- CoCoAServer: computing Cpu Time = 0 ------------------------------- [<quotes>33.091</quotes>, <quotes>17.047</quotes>, <quotes>3.365</quotes>] -------------------------------
See also