Java org.apache.commons.math3.util MathArrays fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Method

voidcheckOrder(double[] val)
Check that the given array is sorted in strictly increasing order.
voidcheckOrder(double[] val, OrderDirection dir, boolean strict)
Check that the given array is sorted.
voidcheckPositive(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.
doubledistance(double[] p1, double[] p2)
Calculates the L2 (Euclidean) distance between two points.
doubledistance(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.
booleanisMonotonic(T[] val, OrderDirection dir, boolean strict)
Check that an array is monotonically increasing or decreasing.
booleanisMonotonic(double[] val, OrderDirection dir, boolean strict)
Check that an array is monotonically increasing or decreasing.
doublelinearCombination(final double a1, final double b1, final double a2, final double b2)
Compute a linear combination accurately.
doublelinearCombination(final double a1, final double b1, final double a2, final double b2, final double a3, final double b3)
Compute a linear combination accurately.
doublelinearCombination(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.
doublesafeNorm(double[] v)
Returns the Cartesian norm (2-norm), handling both overflow and underflow.
voidsortInPlace(double[] x, final OrderDirection dir, double[]... yList)
Sort an array in place and perform the same reordering of entries on other arrays.
voidsortInPlace(double[] x, double[]... yList)
Sort an array in ascending order in place and perform the same reordering of entries on other arrays.