org.apache.commons.math3.linear
Class RealVectorAbstractTest.RealVectorTestImpl

java.lang.Object
  extended by org.apache.commons.math3.linear.RealVector
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.math3.linear.RealVector
RealVector.Entry, RealVector.SparseEntryIterator
 
Field Summary
protected  double[] data
          Entries of the vector.
 
Constructor Summary
RealVectorAbstractTest.RealVectorTestImpl(double[] d)
           
 
Method Summary
 RealVector append(double d)
           
 RealVector append(RealVector v)
           
 RealVector copy()
           
 RealVector ebeDivide(RealVector v)
           
 RealVector ebeMultiply(RealVector v)
           
 int getDimension()
           
 double getEntry(int index)
           
 RealVector getSubVector(int index, int n)
           
 boolean isInfinite()
           
 boolean isNaN()
           
 void setEntry(int index, double value)
           
 void setSubVector(int index, RealVector v)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected double[] data
Entries of the vector.

Constructor Detail

RealVectorAbstractTest.RealVectorTestImpl

public RealVectorAbstractTest.RealVectorTestImpl(double[] d)
Method Detail

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.