commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (MATH-862) AbstractRealMatrix should check that all supplied double[][] arrays are rectangular
Date Thu, 21 Mar 2013 07:35:15 GMT

     [ https://issues.apache.org/jira/browse/MATH-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Neidhart reopened MATH-862:
----------------------------------


My fix was wrong for copySubMatrix, as the javadoc states that the provided array does not
have to be strictly the size of the submatrix to be copied. The check should take this into
account and only verify that there is enough place for the copy operation.
                
> AbstractRealMatrix should check that all supplied double[][] arrays are rectangular
> -----------------------------------------------------------------------------------
>
>                 Key: MATH-862
>                 URL: https://issues.apache.org/jira/browse/MATH-862
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: S├ębastien Brisard
>            Priority: Minor
>              Labels: exception, linear
>             Fix For: 3.2
>
>
> Many methods in RealMatrix take as an argument a {{double[][]}} as the representation
of a matrix. As such, the array should be rectangular. Checks should be provided, as requested
in the Javadoc of e.g. {{void setSubMatrix(double[][], int, int)}}.

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

Mime
View raw message