Example usage for Java org.apache.commons.math3.linear ArrayRealVector fields, constructors, methods, implement or subclass
The text is from its open source code.
ArrayRealVector(int size) Construct a vector of zeroes. | |
ArrayRealVector(double[] d) Construct a vector from an array, copying the input array. | |
ArrayRealVector(Double[] d) Construct a vector from an array. | |
ArrayRealVector(RealVector v) Construct a vector from another vector, using a deep copy. | |
ArrayRealVector(ArrayRealVector v) Construct a vector from another vector, using a deep copy. | |
ArrayRealVector(int size, double preset) Construct a vector with preset values. | |
ArrayRealVector(double[] d, boolean copyArray) Create a new ArrayRealVector using the input array as the underlying data array. | |
ArrayRealVector(ArrayRealVector v, boolean deep) Construct a vector from another vector. | |
ArrayRealVector(ArrayRealVector v1, ArrayRealVector v2) Construct a vector by appending one vector to another vector. | |
ArrayRealVector(ArrayRealVector v1, RealVector v2) Construct a vector by appending one vector to another vector. | |
ArrayRealVector(RealVector v1, ArrayRealVector v2) Construct a vector by appending one vector to another vector. | |
ArrayRealVector(ArrayRealVector v1, double[] v2) Construct a vector by appending one vector to another vector. | |
ArrayRealVector(double[] v1, ArrayRealVector v2) Construct a vector by appending one vector to another vector. | |
ArrayRealVector(double[] v1, double[] v2) Construct a vector by appending one vector to another vector. | |
ArrayRealVector() Build a 0-length vector. |
ArrayRealVector | add(RealVector v) |
RealVector | append(RealVector v) |
ArrayRealVector | append(ArrayRealVector v) Construct a vector by appending a vector to this vector. |
RealVector | append(double in) |
ArrayRealVector | combineToSelf(double a, double b, RealVector y) |
ArrayRealVector | copy() |
double | cosine(RealVector v) Computes the cosine of the angle between this vector and the argument. |
double | dotProduct(RealVector v) |
ArrayRealVector | ebeDivide(RealVector v) |
ArrayRealVector | ebeMultiply(RealVector v) |
double[] | getDataRef() Get a reference to the underlying data array. |
int | getDimension() |
double | getDistance(RealVector v) |
double | getEntry(int index) |
double | getL1Distance(RealVector v) |
double | getMaxValue() Get the value of the maximum entry. |
double | getMinValue() Get the value of the minimum entry. |
double | getNorm() |
RealVector | getSubVector(int index, int n) |
boolean | isNaN() Check if any coordinate of this vector is NaN . |
ArrayRealVector | map(UnivariateFunction function) |
RealVector | mapAddToSelf(double d) |
RealVector | mapDivide(double d) Divide each entry by the argument. |
RealVector | mapDivideToSelf(double d) |
RealVector | mapMultiply(double d) Multiply each entry by the argument. |
RealVector | mapMultiplyToSelf(double d) |
RealVector | mapSubtractToSelf(double d) |
ArrayRealVector | mapToSelf(UnivariateFunction function) |
RealMatrix | outerProduct(RealVector v) |
void | set(double value) |
void | setEntry(int index, double value) |
void | setSubVector(int index, RealVector v) |
void | setSubVector(int index, double[] v) Set a set of consecutive elements. |
ArrayRealVector | subtract(RealVector v) |
double[] | toArray() |
String | toString() |
void | unitize() Converts this vector into a unit vector. |
RealVector | unitVector() Creates a unit vector pointing in the direction of this vector. |