You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "alberto trivellato (JIRA)" <ji...@apache.org> on 2012/10/29 16:44:12 UTC
[jira] [Created] (MATH-886) SingularValueDecomposition fails to
calcuate matrix rank
alberto trivellato created MATH-886:
---------------------------------------
Summary: SingularValueDecomposition fails to calcuate matrix rank
Key: MATH-886
URL: https://issues.apache.org/jira/browse/MATH-886
Project: Commons Math
Issue Type: Bug
Affects Versions: 2.2
Environment: jdk1.6 on windows machine
Reporter: alberto trivellato
for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
{0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
{1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
{1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (MATH-886) SingularValueDecomposition fails to
calcuate matrix rank
Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Neidhart resolved MATH-886.
----------------------------------
Resolution: Duplicate
The SVD implementation has been completely rewritten for the 3.0 release (see MATH-611).
The given test case work with the latest version of CM. It is advised to upgrade to the latest version of CM as there will be no further bugfix release for the 2.x branch.
> SingularValueDecomposition fails to calcuate matrix rank
> --------------------------------------------------------
>
> Key: MATH-886
> URL: https://issues.apache.org/jira/browse/MATH-886
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: jdk1.6 on windows machine
> Reporter: alberto trivellato
> Fix For: 3.0
>
>
> for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
> {0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
> {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
> {1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MATH-886) SingularValueDecomposition fails to
calcuate matrix rank
Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486118#comment-13486118 ]
Phil Steitz commented on MATH-886:
----------------------------------
This looks like a duplicate to MATH-465, which was resolved on 3.0
> SingularValueDecomposition fails to calcuate matrix rank
> --------------------------------------------------------
>
> Key: MATH-886
> URL: https://issues.apache.org/jira/browse/MATH-886
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: jdk1.6 on windows machine
> Reporter: alberto trivellato
>
> for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
> {0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
> {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
> {1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MATH-886) SingularValueDecomposition fails to
calcuate matrix rank
Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Neidhart updated MATH-886:
---------------------------------
Fix Version/s: 3.0
> SingularValueDecomposition fails to calcuate matrix rank
> --------------------------------------------------------
>
> Key: MATH-886
> URL: https://issues.apache.org/jira/browse/MATH-886
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: jdk1.6 on windows machine
> Reporter: alberto trivellato
> Fix For: 3.0
>
>
> for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
> {0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
> {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
> {1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MATH-886) SingularValueDecomposition fails to
calcuate matrix rank
Posted by "Gilles (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486108#comment-13486108 ]
Gilles commented on MATH-886:
-----------------------------
Did you try with Commons Math v3.0?
> SingularValueDecomposition fails to calcuate matrix rank
> --------------------------------------------------------
>
> Key: MATH-886
> URL: https://issues.apache.org/jira/browse/MATH-886
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: jdk1.6 on windows machine
> Reporter: alberto trivellato
>
> for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
> {0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
> {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
> {1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MATH-886) SingularValueDecomposition fails to
calcuate matrix rank
Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494311#comment-13494311 ]
Thomas Neidhart commented on MATH-886:
--------------------------------------
Tested with latest trunk:
{noformat}
double[][] data = {
{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
{0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
{1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
{1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}
};
RealMatrix m = MatrixUtils.createRealMatrix(data);
SingularValueDecomposition d = new SingularValueDecomposition(m);
System.out.println("Rank=" + d.getRank());
{noformat}
Result is: rank=3
> SingularValueDecomposition fails to calcuate matrix rank
> --------------------------------------------------------
>
> Key: MATH-886
> URL: https://issues.apache.org/jira/browse/MATH-886
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: jdk1.6 on windows machine
> Reporter: alberto trivellato
>
> for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
> {0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
> {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
> {1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (MATH-886) SingularValueDecomposition fails
to calcuate matrix rank
Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486118#comment-13486118 ]
Phil Steitz edited comment on MATH-886 at 10/29/12 4:20 PM:
------------------------------------------------------------
This looks like a duplicate to MATH-465, which was resolved in 3.0
was (Author: psteitz):
This looks like a duplicate to MATH-465, which was resolved on 3.0
> SingularValueDecomposition fails to calcuate matrix rank
> --------------------------------------------------------
>
> Key: MATH-886
> URL: https://issues.apache.org/jira/browse/MATH-886
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: jdk1.6 on windows machine
> Reporter: alberto trivellato
>
> for the matrix {{0.0,1.0,0.0,1.0,1.0,1.0,0.0,0.0},
> {0.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0},
> {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0},
> {1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, SVD return rank=4, but it is 3.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira