public class IntArrayFunctionsND extends Object
IntArrayND instances and perform
bulk operations with functional interfaces| Modifier and Type | Method and Description |
|---|---|
static MutableIntArrayND |
apply(IntArrayND a0,
IntArrayND a1,
java.util.function.IntBinaryOperator op,
MutableIntArrayND 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 MutableIntArrayND |
apply(IntArrayND a0,
java.util.function.IntUnaryOperator op,
MutableIntArrayND 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(MutableIntArrayND a0,
java.util.function.IntSupplier s)
Assigns to each element of the given array the value that is provided
by the given supplier.
|
public static void set(MutableIntArrayND a0, java.util.function.IntSupplier s)
a0 - The arrays - The supplierpublic static MutableIntArrayND apply(IntArrayND a0, IntArrayND a1, java.util.function.IntBinaryOperator op, MutableIntArrayND 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 MutableIntArrayND apply(IntArrayND a0, java.util.function.IntUnaryOperator op, MutableIntArrayND 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.