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