| Modifier and Type | Method and Description |
|---|---|
static MutableLongTuple |
apply(LongTuple t0,
LongTuple t1,
java.util.function.LongBinaryOperator op,
MutableLongTuple result)
Applies the given binary operator to each pair of elements from the
given tuples, and stores the result in the given result tuple.
|
static MutableLongTuple |
apply(LongTuple t0,
java.util.function.LongUnaryOperator op,
MutableLongTuple result)
Applies the given unary operator to element from the given tuple,
and stores the result in the given result tuple.
|
static MutableLongTuple |
exclusiveScan(LongTuple t0,
long identity,
java.util.function.LongBinaryOperator op,
MutableLongTuple result)
Performs an exclusive scan on the elements of the given tuple, using
the provided identity value and associative accumulation function,
and returns the result.
|
static MutableLongTuple |
inclusiveScan(LongTuple t0,
java.util.function.LongBinaryOperator op,
MutableLongTuple result)
Performs an inclusive scan on the elements of the given tuple, using
the provided associative accumulation function, and returns the
result.
|
static long |
reduce(LongTuple t0,
long identity,
java.util.function.LongBinaryOperator op)
Performs a reduction on the elements of the given tuple, using the
provided identity value and an associative accumulation function,
and returns the reduced value.
|
public static MutableLongTuple apply(LongTuple t0, LongTuple t1, java.util.function.LongBinaryOperator op, MutableLongTuple result)
null, then a new tuple
will be created and returned.t0 - The first tuplet1 - The second tupleop - The operator to applyresult - The tuple that will store the resultIllegalArgumentException - If the given tuples do not have
the same sizepublic static MutableLongTuple apply(LongTuple t0, java.util.function.LongUnaryOperator op, MutableLongTuple result)
null, then a new tuple
will be created and returned.t0 - The tupleop - The operator to applyresult - The tuple that will store the resultIllegalArgumentException - If the given tuples do not have
the same sizepublic static long reduce(LongTuple t0, long identity, java.util.function.LongBinaryOperator op)
t0 - The tupleidentity - The identity valueop - The accumulation functionpublic static MutableLongTuple inclusiveScan(LongTuple t0, java.util.function.LongBinaryOperator op, MutableLongTuple result)
result tuple is null, then a
new tuple will be created and returned.result tuple may be identical to the input tuple.t0 - The tupleop - The accumulation functionresult - The resultIllegalArgumentException - If the given result tuple is not
null and has a different size
than the input tuplepublic static MutableLongTuple exclusiveScan(LongTuple t0, long identity, java.util.function.LongBinaryOperator op, MutableLongTuple result)
result tuple is null, then a
new tuple will be created and returned.result tuple may be identical to the input tuple.t0 - The tupleidentity - The identity valueop - The accumulation functionresult - The resultIllegalArgumentException - If the given result tuple is not
null and has a different size
than the input tupleCopyright © 2015. All Rights Reserved.