Example usage for Java org.apache.commons.math3.util MathArrays fields, constructors, methods, implement or subclass
The text is from its open source code.
void | checkOrder(double[] val) Check that the given array is sorted in strictly increasing order. |
void | checkOrder(double[] val, OrderDirection dir, boolean strict) Check that the given array is sorted. |
void | checkPositive(final double[] in) Check that all entries of the input array are strictly positive. |
int[] | copyOf(int[] source) Creates a copy of the source array. |
double[] | copyOf(double[] source) Creates a copy of the source array. |
int[] | copyOf(int[] source, int len) Creates a copy of the source array. |
double[] | copyOf(double[] source, int len) Creates a copy of the source array. |
double | distance(double[] p1, double[] p2) Calculates the L2 (Euclidean) distance between two points. |
double | distance(int[] p1, int[] p2) Calculates the L2 (Euclidean) distance between two points. |
double[] | ebeAdd(double[] a, double[] b) Creates an array whose contents will be the element-by-element addition of the arguments. |
double[] | ebeDivide(double[] a, double[] b) Creates an array whose contents will be the element-by-element division of the first argument by the second. |
double[] | ebeMultiply(double[] a, double[] b) Creates an array whose contents will be the element-by-element multiplication of the arguments. |
double[] | ebeSubtract(double[] a, double[] b) Creates an array whose contents will be the element-by-element subtraction of the second argument from the first. |
boolean | isMonotonic(T[] val, OrderDirection dir, boolean strict) Check that an array is monotonically increasing or decreasing. |
boolean | isMonotonic(double[] val, OrderDirection dir, boolean strict) Check that an array is monotonically increasing or decreasing. |
double | linearCombination(final double a1, final double b1, final double a2, final double b2) Compute a linear combination accurately. |
double | linearCombination(final double a1, final double b1, final double a2, final double b2, final double a3, final double b3) Compute a linear combination accurately. |
double | linearCombination(final double a1, final double b1, final double a2, final double b2, final double a3, final double b3, final double a4, final double b4) Compute a linear combination accurately. |
double[] | normalizeArray(double[] values, double normalizedSum) Normalizes an array to make it sum to a specified value. |
double | safeNorm(double[] v) Returns the Cartesian norm (2-norm), handling both overflow and underflow. |
void | sortInPlace(double[] x, final OrderDirection dir, double[]... yList) Sort an array in place and perform the same reordering of entries on other arrays. |
void | sortInPlace(double[] x, double[]... yList) Sort an array in ascending order in place and perform the same reordering of entries on other arrays. |