Java org.apache.commons.math3.linear RealVector fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.linear RealVector fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.linear RealVector.

The text is from its open source code.

Subclass

org.apache.commons.math3.linear.RealVector has subclasses.
Click this link to see all its subclasses.

Constructor

Method

RealVectoradd(RealVector v)
Compute the sum of this vector and v .
voidaddToEntry(int index, double increment)
Change an entry at the specified index.
RealVectorappend(RealVector v)
Construct a new vector by appending a vector to this vector.
RealVectorappend(double d)
Construct a new vector by appending a double to this vector.
RealVectorcombineToSelf(double a, double b, RealVector y)
Updates this with the linear combination of this and y .
RealVectorcopy()
Returns a (deep) copy of this vector.
doublecosine(RealVector v)
Computes the cosine of the angle between this vector and the argument.
doubledotProduct(RealVector v)
Compute the dot product of this vector with v .
RealVectorebeDivide(RealVector v)
Element-by-element division.
RealVectorebeMultiply(RealVector v)
Element-by-element multiplication.
booleanequals(Object other)

Test for the equality of two real vectors.

ClassgetClass()
Returns the runtime class of this Object .
intgetDimension()
Returns the size of the vector.
doublegetDistance(RealVector v)
Distance between two vectors.
doublegetEntry(int index)
Return the entry at the specified index.
doublegetL1Distance(RealVector v)
Distance between two vectors.
doublegetL1Norm()
Returns the L1 norm of the vector.
doublegetLInfDistance(RealVector v)
Distance between two vectors.
doublegetLInfNorm()
Returns the L norm of the vector.
intgetMaxIndex()
Get the index of the maximum entry.
doublegetMaxValue()
Get the value of the maximum entry.
doublegetMinValue()
Get the value of the minimum entry.
doublegetNorm()
Returns the L2 norm of the vector.
RealVectorgetSubVector(int index, int n)
Get a subvector from consecutive elements.
inthashCode()
This method must be overriden by concrete subclasses of RealVector (current implementation throws an exception).
booleanisInfinite()
Check whether any coordinate of this vector is infinite and none are NaN .
booleanisNaN()
Check whether any coordinate of this vector is NaN .
RealVectormap(UnivariateFunction function)
Acts as if implemented as:
 return copy().mapToSelf(function); 
Returns a new vector.
RealVectormapAdd(double d)
Add a value to each entry.
RealVectormapAddToSelf(double d)
Add a value to each entry.
RealVectormapDivide(double d)
Divide each entry by the argument.
RealVectormapDivideToSelf(double d)
Divide each entry by the argument.
RealVectormapMultiply(double d)
Multiply each entry by the argument.
RealVectormapMultiplyToSelf(double d)
Multiply each entry.
RealVectormapSubtract(double d)
Subtract a value from each entry.
RealVectormapSubtractToSelf(double d)
Subtract a value from each entry.
RealVectormapToSelf(UnivariateFunction function)
Acts as if it is implemented as:
 Entry e = null; for(Iterator it = iterator(); it.hasNext(); e = it.next()) { e.setValue(function.value(e.getValue())); } 
Entries of this vector are modified in-place by this method.
RealMatrixouterProduct(RealVector v)
Compute the outer product.
voidset(double value)
Set all elements to a single value.
voidsetEntry(int index, double value)
Set a single element.
voidsetSubVector(int index, RealVector v)
Set a sequence of consecutive elements.
RealVectorsubtract(RealVector v)
Subtract v from this vector.
double[]toArray()
Convert the vector to an array of double s.
StringtoString()
Returns a string representation of the object.
RealVectorunitVector()
Creates a unit vector pointing in the direction of this vector.
doublewalkInDefaultOrder(final RealVectorPreservingVisitor visitor)
Visits (but does not alter) all entries of this vector in default order (increasing index).
doublewalkInDefaultOrder(final RealVectorChangingVisitor visitor)
Visits (and possibly alters) all entries of this vector in default order (increasing index).
doublewalkInOptimizedOrder(final RealVectorPreservingVisitor visitor)
Visits (but does not alter) all entries of this vector in optimized order.
doublewalkInOptimizedOrder(final RealVectorChangingVisitor visitor)
Visits (and possibly alters) all entries of this vector in optimized order.