diff --git a/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java b/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java index 4b720467c..ae4abecae 100644 --- a/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java +++ b/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java @@ -33,6 +33,9 @@ import org.apache.commons.math3.exception.util.LocalizedFormats; * handles expanding and contracting its internal storage array as elements * are added and removed. *
+ ** The internal storage array starts with capacity determined by the * {@code initialCapacity} property, which can be set by the constructor. @@ -930,7 +933,7 @@ public class ResizableDoubleArray implements DoubleArray, Serializable { * @return the result. * @since 3.1 */ - public synchronized double compute(MathArrays.Function f) { + public double compute(MathArrays.Function f) { return f.evaluate(internalArray, startIndex, numElements); }