RealMatrixImpl#operate gets result vector dimensions wrong
----------------------------------------------------------
Key: MATH-209
URL: https://issues.apache.org/jira/browse/MATH-209
Project: Commons Math
Issue Type: Bug
Affects Versions: 1.2
Reporter: Thomas Chust
{{org.apache.commons.math.linear.RealMatrixImpl#operate}} tries to create a
result vector that always has the same length as the input vector. This can
result in runtime exceptions if the matrix is non-square and it always yields
incorrect results if the matrix is non-square. The correct behaviour would of
course be to create a vector with the same length as the row dimension of the
matrix.
Thus line 640 in RealMatrixImpl.java should read
{{double[] out = new double[nRows];}}
instead of
{{double[] out = new double[v.length];}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.