public class ArrayHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.math3.complex.Complex[] |
add(org.apache.commons.math3.complex.Complex[] a,
org.apache.commons.math3.complex.Complex[] b)
Element wise addition of two double arrays
|
static double[] |
add(double[] a,
double[] b)
Element wise addition of two double arrays
|
static boolean |
arrayContainsValue(int[] arr,
int value)
Return true, if the given int is contained in the given array
|
static boolean |
arrayContainsValue(java.lang.Object[] arr,
java.lang.Object obj)
Return true, if the given object is contained in the given array
|
static double[] |
pow(java.lang.Double[] a,
double e)
Builds the exponential value of each of the Array elements
|
static org.apache.commons.math3.complex.Complex[] |
subtract(org.apache.commons.math3.complex.Complex[] a,
org.apache.commons.math3.complex.Complex[] b)
Element wise subtraction
|
static double[] |
subtract(double[] a,
double[] b)
Element wise subtraction
|
public static boolean arrayContainsValue(java.lang.Object[] arr,
java.lang.Object obj)
arr - Array to checkobj - Object to be checkedpublic static boolean arrayContainsValue(int[] arr,
int value)
arr - Array to checkvalue - Object to be checkedpublic static double[] add(double[] a,
double[] b)
a - Array of double values for the first addendb - Array of double values for the second addendpublic static org.apache.commons.math3.complex.Complex[] add(org.apache.commons.math3.complex.Complex[] a,
org.apache.commons.math3.complex.Complex[] b)
a - Array of Complex values for the first addendb - Array of Complex values for the second addendpublic static double[] subtract(double[] a,
double[] b)
a - Left hand side Array of double valuesb - Right hand side Array of double valuespublic static org.apache.commons.math3.complex.Complex[] subtract(org.apache.commons.math3.complex.Complex[] a,
org.apache.commons.math3.complex.Complex[] b)
a - Left hand side Array of Complex valuesb - Right hand side Array of Complex valuesComplex values built by subtractionpublic static double[] pow(java.lang.Double[] a,
double e)
a - Array of Complex values to build the exponential valuee - ExponentComplex values