[ https://issues.apache.org/jira/browse/MATH391?page=com.atlassian.jira.plugin.system.issuetabpanels:alltabpanel
]
Roman Werpachowski updated MATH391:

Description:
ArrayRealVector(double[] d) allows to construct a zerolength vector, but ArrayRealVector(double[]
d, boolean copyArray) doesn't. Both should allow this as zerolength vectors are mathematically
welldefined objects and they are useful boundary cases in many algorithms.
This breaks some arithmetic operators (addition) on zerolength real vectors which worked
in 2.0 but don't work in 2.1
was:
ArrayRealVector(double[] d) allows to construct a zerolength vector, but ArrayRealVector(double[]
d, boolean copyArray) doesn't. Both should allow this as zerolength vectors are mathematically
welldefined objects and they are useful boundary cases in many algorithms.
Zerolength vectors worked in version 2.0, they should be working in 2.1 as well.
> Inconsistent behaviour of constructors in ArrayRealVector class
> 
>
> Key: MATH391
> URL: https://issues.apache.org/jira/browse/MATH391
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Roman Werpachowski
>
> ArrayRealVector(double[] d) allows to construct a zerolength vector, but ArrayRealVector(double[]
d, boolean copyArray) doesn't. Both should allow this as zerolength vectors are mathematically
welldefined objects and they are useful boundary cases in many algorithms.
> This breaks some arithmetic operators (addition) on zerolength real vectors which worked
in 2.0 but don't work in 2.1

This message is automatically generated by JIRA.

You can reply to this email to add a comment to the issue online.
