diff --git a/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java b/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java index d1771183d..4ede4e8bb 100644 --- a/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java +++ b/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java @@ -764,7 +764,7 @@ public abstract class AbstractFieldMatrix> out[col] = sum; } - return new ArrayFieldVector(out); + return new ArrayFieldVector(out, false); } } diff --git a/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java b/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java index 566922a0f..7a8f3fc5f 100644 --- a/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java +++ b/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java @@ -693,7 +693,7 @@ public abstract class AbstractRealMatrix implements RealMatrix { out[col] = sum; } - return new ArrayRealVector(out); + return new ArrayRealVector(out, false); } } diff --git a/src/main/java/org/apache/commons/math/linear/ArrayFieldVector.java b/src/main/java/org/apache/commons/math/linear/ArrayFieldVector.java index 7c635b4e4..da6aab328 100644 --- a/src/main/java/org/apache/commons/math/linear/ArrayFieldVector.java +++ b/src/main/java/org/apache/commons/math/linear/ArrayFieldVector.java @@ -447,7 +447,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].add(d); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** {@inheritDoc} */ @@ -464,7 +464,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].subtract(d); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** {@inheritDoc} */ @@ -481,7 +481,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].multiply(d); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** {@inheritDoc} */ @@ -498,7 +498,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].divide(d); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** {@inheritDoc} */ @@ -516,7 +516,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = one.divide(data[i]); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** {@inheritDoc} */ @@ -538,7 +538,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].multiply(v.getEntry(i)); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } } @@ -549,7 +549,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].multiply(v[i]); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** @@ -572,7 +572,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].divide(v.getEntry(i)); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } } @@ -583,7 +583,7 @@ public class ArrayFieldVector> implements FieldVector< for (int i = 0; i < data.length; i++) { out[i] = data[i].divide(v[i]); } - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** @@ -736,7 +736,7 @@ public class ArrayFieldVector> implements FieldVector< final T[] out = buildArray(data.length + 1); System.arraycopy(data, 0, out, 0, data.length); out[data.length] = in; - return new ArrayFieldVector(out); + return new ArrayFieldVector(field, out, false); } /** {@inheritDoc} */