public class DoubleArrayFunctionsND extends Object
DoubleArrayND instances and perform
bulk operations with functional interfaces| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleArrayND |
apply(DoubleArrayND a0,
DoubleArrayND a1,
java.util.function.DoubleBinaryOperator op,
MutableDoubleArrayND result)
Applies the given binary operator to each pair of elements from the
given arrays, and stores the result in the given result array.
|
static MutableDoubleArrayND |
apply(DoubleArrayND a0,
java.util.function.DoubleUnaryOperator op,
MutableDoubleArrayND result)
Applies the given unary operator to the elements from the given array,
and stores the result in the given result array.
|
static void |
set(MutableDoubleArrayND a0,
java.util.function.DoubleSupplier s)
Assigns to each element of the given array the value that is provided
by the given supplier.
|
public static void set(MutableDoubleArrayND a0, java.util.function.DoubleSupplier s)
a0 - The arrays - The supplierpublic static MutableDoubleArrayND apply(DoubleArrayND a0, DoubleArrayND a1, java.util.function.DoubleBinaryOperator op, MutableDoubleArrayND result)
null, then a new array
will be created and returned.a0 - The first arraya1 - The second arrayop - The operator to applyresult - The array that will store the resultIllegalArgumentException - If the given arrays do not have
equal sizes.public static MutableDoubleArrayND apply(DoubleArrayND a0, java.util.function.DoubleUnaryOperator op, MutableDoubleArrayND result)
null, then a new array
will be created and returned.a0 - The arrayop - The operator to applyresult - The array that will store the resultIllegalArgumentException - If the given arrays do not have
equal sizes.Copyright © 2015. All Rights Reserved.