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

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

Introduction

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

The text is from its open source code.

Method

RealVectoradd(RealVector v)
Compute the sum of this vector and v .
RealVectoradd(double[] v)
Compute the sum of this vector and v .
RealVectorappend(RealVector v)
Construct a vector by appending a vector to this vector.
RealVectorappend(double d)
Construct a vector by appending a double to this vector.
RealVectorappend(double[] a)
Construct a vector by appending a double array to this vector.
RealVectorcopy()
Returns a (deep) copy of this vector.
doubledotProduct(RealVector v)
Compute the dot product.
doubledotProduct(double[] v)
Compute the dot product.
double[]getData()
Returns vector entries as a double array.
intgetDimension()
Returns the size of the vector.
doublegetDistance(RealVector v)
Distance between two vectors.
doublegetDistance(double[] v)
Distance between two vectors.
doublegetEntry(int index)
Returns the entry in the specified index.
doublegetL1Distance(RealVector v)
Distance between two vectors.
doublegetL1Distance(double[] v)
Distance between two vectors.
doublegetL1Norm()
Returns the L1 norm of the vector.
doublegetLInfNorm()
Returns the L norm of the vector.
doublegetNorm()
Returns the L2 norm of the vector.
RealVectormapDivide(double d)
Divide each entry.
RealVectormapMultiply(double d)
Multiply each entry.
RealVectormapMultiplyToSelf(double d)
Multiply each entry.
RealMatrixouterProduct(RealVector v)
Compute the outer product.
RealMatrixouterProduct(double[] v)
Compute the outer product.
voidsetEntry(int index, double value)
Set a single element.
RealVectorsubtract(RealVector v)
Subtract v from this vector.
RealVectorsubtract(double[] v)
Subtract v from this vector.
double[]toArray()
Convert the vector to a double array.
voidunitize()
Converts this vector into a unit vector.