You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2013/03/14 14:46:12 UTC

[jira] [Commented] (MATH-947) SingularValueDecomposition constructor blocks with NaN in the matrix

    [ https://issues.apache.org/jira/browse/MATH-947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13602270#comment-13602270 ] 

Gilles commented on MATH-947:
-----------------------------

Obviously, you can't hope to get a useful result from such an input.

There is probably a loop with an exit condition that's never satisfied...
One way to avoid it would be to check the validity of the input. This could be done either in Commons Math or in the user's code.
                
> SingularValueDecomposition constructor blocks with NaN in the matrix
> --------------------------------------------------------------------
>
>                 Key: MATH-947
>                 URL: https://issues.apache.org/jira/browse/MATH-947
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: jdk1.7.0_13 32bit, Netbeans 7.2.1, Win7 x64
>            Reporter: Matti Franssila
>            Priority: Critical
>
> //Create coefficient (A) Matrix
>         RealMatrix coefficients =
>             new Array2DRowRealMatrix(coeffs);
>                SingularValueDecomposition svd = new SingularValueDecomposition(coefficients);
> //When coeffs is a 2x2 matrix with all elements Nan, the constructor blocks indefinitely /w 100% CPU usage

--
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