[
https://issues.apache.org/jira/browse/MATH-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luc Maisonobe resolved MATH-209.
--------------------------------
Resolution: Fixed
Sorry for this dumb mistake.
Fixed in 2.0 branch as of r668798.
> 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
> Original Estimate: 0.03h
> Remaining Estimate: 0.03h
>
> {{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.