Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
the constructor public ArrayFieldVector(T[] v1, ArrayFieldVector<T> v2) {
...
}
takes an ArrayFieldVector.
but the same can be easier archieved with this
public ArrayFieldVector(T[] v1, FieldVector<T> v2)
{ this(v1, v2 == null ? null : v2.getData()); }this goes for all other constructors...
P.S. I donk know if copying the data in getData is an issue ... for this the named constructor may make sense...