public class DoubleTupleFunctions extends Object
DoubleTuples
using functional interfaces.null.| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleTuple |
apply(DoubleTuple t0,
DoubleTuple t1,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple 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 MutableDoubleTuple |
apply(DoubleTuple t0,
java.util.function.DoubleUnaryOperator op,
MutableDoubleTuple result)
Applies the given unary operator to element from the given tuple,
and stores the result in the given result tuple.
|
static MutableDoubleTuple |
exclusiveScan(DoubleTuple t0,
double identity,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple 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 MutableDoubleTuple |
inclusiveScan(DoubleTuple t0,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Performs an inclusive scan on the elements of the given tuple, using
the provided associative accumulation function, and returns the
result.
|
static double |
reduce(DoubleTuple t0,
double identity,
java.util.function.DoubleBinaryOperator 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 MutableDoubleTuple apply(DoubleTuple t0, DoubleTuple t1, java.util.function.DoubleBinaryOperator op, MutableDoubleTuple 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 MutableDoubleTuple apply(DoubleTuple t0, java.util.function.DoubleUnaryOperator op, MutableDoubleTuple 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 double reduce(DoubleTuple t0, double identity, java.util.function.DoubleBinaryOperator op)
t0 - The tupleidentity - The identity valueop - The accumulation functionpublic static MutableDoubleTuple inclusiveScan(DoubleTuple t0, java.util.function.DoubleBinaryOperator op, MutableDoubleTuple 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 MutableDoubleTuple exclusiveScan(DoubleTuple t0, double identity, java.util.function.DoubleBinaryOperator op, MutableDoubleTuple 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.