org.apache.commons.math3.linear
Class RealVectorAbstractTest.RealVectorTestImpl
java.lang.Object
org.apache.commons.math3.linear.RealVector
org.apache.commons.math3.linear.RealVectorAbstractTest.RealVectorTestImpl
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- RealVectorAbstractTest
public static class RealVectorAbstractTest.RealVectorTestImpl
- extends RealVector
- implements Serializable
Minimal implementation of the RealVector abstract class, for
mixed types unit tests.
- See Also:
- Serialized Form
|
Field Summary |
protected double[] |
data
Entries of the vector. |
| Methods inherited from class org.apache.commons.math3.linear.RealVector |
add, addToEntry, checkIndex, checkIndices, checkVectorDimensions, checkVectorDimensions, combine, combineToSelf, cosine, dotProduct, equals, getDistance, getL1Distance, getL1Norm, getLInfDistance, getLInfNorm, getMaxIndex, getMaxValue, getMinIndex, getMinValue, getNorm, hashCode, iterator, map, mapAdd, mapAddToSelf, mapDivide, mapDivideToSelf, mapMultiply, mapMultiplyToSelf, mapSubtract, mapSubtractToSelf, mapToSelf, outerProduct, projection, set, sparseIterator, subtract, toArray, unitize, unitVector, unmodifiableRealVector, walkInDefaultOrder, walkInDefaultOrder, walkInDefaultOrder, walkInDefaultOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder |
data
protected double[] data
- Entries of the vector.
RealVectorAbstractTest.RealVectorTestImpl
public RealVectorAbstractTest.RealVectorTestImpl(double[] d)
copy
public RealVector copy()
- Specified by:
copy in class RealVector
ebeMultiply
public RealVector ebeMultiply(RealVector v)
- Specified by:
ebeMultiply in class RealVector
ebeDivide
public RealVector ebeDivide(RealVector v)
- Specified by:
ebeDivide in class RealVector
getEntry
public double getEntry(int index)
- Specified by:
getEntry in class RealVector
getDimension
public int getDimension()
- Specified by:
getDimension in class RealVector
append
public RealVector append(RealVector v)
- Specified by:
append in class RealVector
append
public RealVector append(double d)
- Specified by:
append in class RealVector
getSubVector
public RealVector getSubVector(int index,
int n)
- Specified by:
getSubVector in class RealVector
setEntry
public void setEntry(int index,
double value)
- Specified by:
setEntry in class RealVector
setSubVector
public void setSubVector(int index,
RealVector v)
- Specified by:
setSubVector in class RealVector
isNaN
public boolean isNaN()
- Specified by:
isNaN in class RealVector
isInfinite
public boolean isInfinite()
- Specified by:
isInfinite in class RealVector
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.