You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: null
at org.hipparchus.linear.AbstractFieldMatrix.setColumnVector(AbstractFieldMatrix.java:566) ~[classes/:?]
at org.hipparchus.linear.ComplexEigenDecomposition.<init>(ComplexEigenDecomposition.java:143) ~[classes/:?]
at org.hipparchus.linear.OrderedComplexEigenDecomposition.<init>(OrderedComplexEigenDecomposition.java:98) ~[classes/:?]
The eigenvectors contain a nullvalue at line ComplexEigenDecomposition.java:143
I would have expected a 0-vector {0.0,0.0,0.0} instead of the null value.
The text was updated successfully, but these errors were encountered:
I think that instead of returning a zero vector (as mentioned in #248 discussion), we should trigger an exception.
The eigen decomposition theorem is that decomposition is always possible "if the matrix P of eigen vectors is a square matrix". The example in MathWorld is about a 2x2 matrix where the space of eigenvectors is only 1, and the matrix in this issue is a 3x3 matrix where the space of eigenvectors is only 2.
In both cases, the eigen decomposition theorem does not apply, the matrix P is not square.
OK, then I'll add the zeros, with some documentation.
It nevertheless looks strange to me as Wolfram Alpha really returns two eigenvectors for this matrix.
Follow up from #248:
Thanks for the change, which works for most cases, but this case for
matrix
and the following call:
throws a NullPointerException
The eigenvectors contain a
null
value at lineComplexEigenDecomposition.java:143
I would have expected a 0-vector
{0.0,0.0,0.0}
instead of thenull
value.The text was updated successfully, but these errors were encountered: