ArrayRealVector extends RealVector implements Serializable { @Override public int getDimension() { return data.length; } ArrayRealVector();  ArrayRealVector(int size);  ArrayRealVector(int size, double preset);  ArrayRealVector(double[] d);  ArrayRealVector(double[] d, boolean copyArray);  ArrayRealVector(double[] d, int pos, int size);  ArrayRealVector(Double[] d);  ArrayRealVector(Double[] d, int pos, int size);  ArrayRealVector(RealVector v);  ArrayRealVector(ArrayRealVector v);  ArrayRealVector(ArrayRealVector v, boolean deep);  ArrayRealVector(ArrayRealVector v1, ArrayRealVector v2);  ArrayRealVector(ArrayRealVector v1, RealVector v2);  ArrayRealVector(RealVector v1, ArrayRealVector v2);  ArrayRealVector(ArrayRealVector v1, double[] v2);  ArrayRealVector(double[] v1, ArrayRealVector v2);  ArrayRealVector(double[] v1, double[] v2); @Override ArrayRealVector copy(); @Override ArrayRealVector add(RealVector v); @Override ArrayRealVector subtract(RealVector v); @Override ArrayRealVector map(UnivariateFunction function); @Override ArrayRealVector mapToSelf(UnivariateFunction function); @Override RealVector mapAddToSelf(double d); @Override RealVector mapSubtractToSelf(double d); @Override RealVector mapMultiplyToSelf(double d); @Override RealVector mapDivideToSelf(double d); @Override ArrayRealVector ebeMultiply(RealVector v); @Override ArrayRealVector ebeDivide(RealVector v); double[] getDataRef(); @Override double dotProduct(RealVector v); @Override double getNorm(); @Override double getL1Norm(); @Override double getLInfNorm(); @Override double getDistance(RealVector v); @Override double getL1Distance(RealVector v); @Override double getLInfDistance(RealVector v); @Override RealMatrix outerProduct(RealVector v); @Override double getEntry(int index); @Override int getDimension(); @Override RealVector append(RealVector v); ArrayRealVector append(ArrayRealVector v); @Override RealVector append(double in); @Override RealVector getSubVector(int index, int n); @Override void setEntry(int index, double value); @Override void addToEntry(int index, double increment); @Override void setSubVector(int index, RealVector v); void setSubVector(int index, double[] v); @Override void set(double value); @Override double[] toArray(); @Override String toString(); @Override boolean isNaN(); @Override boolean isInfinite(); @Override boolean equals(Object other); @Override int hashCode(); @Override ArrayRealVector combine(double a, double b, RealVector y); @Override ArrayRealVector combineToSelf(double a, double b, RealVector y); @Override double walkInDefaultOrder(final RealVectorPreservingVisitor visitor); @Override double walkInDefaultOrder(final RealVectorPreservingVisitor visitor,
        final int start, final int end); @Override double walkInOptimizedOrder(final RealVectorPreservingVisitor visitor); @Override double walkInOptimizedOrder(final RealVectorPreservingVisitor visitor,
        final int start, final int end); @Override double walkInDefaultOrder(final RealVectorChangingVisitor visitor); @Override double walkInDefaultOrder(final RealVectorChangingVisitor visitor,
        final int start, final int end); @Override double walkInOptimizedOrder(final RealVectorChangingVisitor visitor); @Override double walkInOptimizedOrder(final RealVectorChangingVisitor visitor,
        final int start, final int end);  }
@Test public void testZeroVectors() { Assert.assertEquals(0, new ArrayRealVector(new double[0]).getDimension()); Assert.assertEquals(0, new ArrayRealVector(new double[0], true).getDimension()); Assert.assertEquals(0, new ArrayRealVector(new double[0], false).getDimension()); }