| Modifier and Type | Method and Description |
|---|---|
static MutableIntTuple |
apply(IntTuple t0,
IntTuple t1,
java.util.function.IntBinaryOperator op,
MutableIntTuple 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 MutableIntTuple |
apply(IntTuple t0,
java.util.function.IntUnaryOperator op,
MutableIntTuple result)
Applies the given unary operator to element from the given tuple,
and stores the result in the given result tuple.
|
static MutableIntTuple |
exclusiveScan(IntTuple t0,
int identity,
java.util.function.IntBinaryOperator op,
MutableIntTuple 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 MutableIntTuple |
inclusiveScan(IntTuple t0,
java.util.function.IntBinaryOperator op,
MutableIntTuple result)
Performs an inclusive scan on the elements of the given tuple, using
the provided associative accumulation function, and returns the
result.
|
static int |
reduce(IntTuple t0,
int identity,
java.util.function.IntBinaryOperator 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 MutableIntTuple apply(IntTuple t0, IntTuple t1, java.util.function.IntBinaryOperator op, MutableIntTuple 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 MutableIntTuple apply(IntTuple t0, java.util.function.IntUnaryOperator op, MutableIntTuple 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 int reduce(IntTuple t0, int identity, java.util.function.IntBinaryOperator op)
t0 - The tupleidentity - The identity valueop - The accumulation functionpublic static MutableIntTuple inclusiveScan(IntTuple t0, java.util.function.IntBinaryOperator op, MutableIntTuple 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 MutableIntTuple exclusiveScan(IntTuple t0, int identity, java.util.function.IntBinaryOperator op, MutableIntTuple 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.