| Package | Description |
|---|---|
| de.javagl.nd.tuples.j |
Multidimensional tuples of
long values |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMutableLongTuple
Abstract base implementation of a
MutableLongTuple. |
| Modifier and Type | Method and Description |
|---|---|
static MutableLongTuple |
LongTupleCollections.add(Collection<? extends LongTuple> tuples,
MutableLongTuple result)
Computes the component-wise sum of the given collection
of tuples.
|
static MutableLongTuple |
LongTuples.add(LongTuple t0,
long value,
MutableLongTuple result)
Add the given value to all elements of the given input
tuples, and store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.add(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Add the given input tuples, and store the result in
the given result tuple.
|
static MutableLongTuple |
LongTuples.addScaled(LongTuple t0,
long factor,
LongTuple t1,
MutableLongTuple result)
Computes
t0+factor*t1, and stores the result in the given
result tuple. |
static MutableLongTuple |
LongTupleFunctions.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 |
LongTupleFunctions.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 |
LongTuples.clamp(LongTuple t,
long min,
long max,
MutableLongTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableLongTuple |
LongTuples.clamp(LongTuple t,
LongTuple min,
LongTuple max,
MutableLongTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableLongTuple |
LongTuples.copy(LongTuple other)
Creates a new tuple which is a copy of
the given one.
|
static MutableLongTuple |
LongTuples.create(int size)
Creates a new tuple with the given size.
|
static MutableLongTuple |
LongTuples.divide(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Divide the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableLongTuple |
LongTupleFunctions.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 |
LongTupleFunctions.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 MutableLongTuple |
LongTupleCollections.max(Collection<? extends LongTuple> tuples,
MutableLongTuple result)
Computes the component-wise maximum of the given collection
of tuples.
|
static MutableLongTuple |
LongTuples.max(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Compute the element-wise maximum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableLongTuple |
LongTupleCollections.min(Collection<? extends LongTuple> tuples,
MutableLongTuple result)
Computes the component-wise minimum of the given collection
of tuples.
|
static MutableLongTuple |
LongTuples.min(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Compute the element-wise minimum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableLongTuple |
LongTuples.multiply(LongTuple t0,
long factor,
MutableLongTuple result)
Multiply the given input tuple with the given factor, and
store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.multiply(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Multiply the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableLongTuple |
LongTuples.negate(LongTuple t0,
MutableLongTuple result)
Negates the given tuple, and store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.of(int x,
int y)
Creates a new
MutableLongTuple with the given values. |
static MutableLongTuple |
LongTuples.of(long... values)
Creates a new tuple with the given values.
|
static MutableLongTuple |
LongTuples.of(long x)
Creates a new
MutableLongTuple with the given value. |
static MutableLongTuple |
LongTuples.of(long x,
long y,
long z)
Creates a new
MutableLongTuple with the given values. |
static MutableLongTuple |
LongTuples.of(long x,
long y,
long z,
long w)
Creates a new
MutableLongTuple with the given values. |
static MutableLongTuple |
LongTuples.reverse(LongTuple t,
MutableLongTuple result)
Reverse the given tuple.
|
static MutableLongTuple |
LongTuples.reversed(MutableLongTuple t)
Creates a new tuple that is a reversed view on the given
tuple.
|
static MutableLongTuple |
LongTuples.subtract(LongTuple t0,
long value,
MutableLongTuple result)
Subtract the given value from all elements of the given input
tuple, and store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.subtract(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Subtract the given input tuples, and store the result in
the given result tuple.
|
default MutableLongTuple |
MutableLongTuple.subTuple(int fromIndex,
int toIndex)
Returns a view on a portion of this tuple.
|
static MutableLongTuple |
LongTuples.wrap(long... values)
Creates a new tuple that is a view
on the given values.
|
static MutableLongTuple |
LongTuples.wrap(long[] data,
int offset,
int size)
Returns a new tuple that is a view on the
specified portion of the given array
|
static MutableLongTuple |
LongTuples.wrap(LongBuffer buffer)
Returns a new tuple that is a view on the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
static List<MutableLongTuple> |
LongTupleCollections.create(int dimensions,
int numElements)
Create the specified number of tuples with the given dimensions
(
size), all initialized to zero, and
return them as a list |
static List<MutableLongTuple> |
LongTupleCollections.deepCopy(Collection<? extends LongTuple> tuples)
Returns a deep copy of the given collection of tuples.
|
| Modifier and Type | Method and Description |
|---|---|
static MutableLongTuple |
LongTupleCollections.add(Collection<? extends LongTuple> tuples,
MutableLongTuple result)
Computes the component-wise sum of the given collection
of tuples.
|
static MutableLongTuple |
LongTuples.add(LongTuple t0,
long value,
MutableLongTuple result)
Add the given value to all elements of the given input
tuples, and store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.add(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Add the given input tuples, and store the result in
the given result tuple.
|
static MutableLongTuple |
LongTuples.addScaled(LongTuple t0,
long factor,
LongTuple t1,
MutableLongTuple result)
Computes
t0+factor*t1, and stores the result in the given
result tuple. |
static MutableLongTuple |
LongTupleFunctions.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 |
LongTupleFunctions.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 List<Long> |
LongTuples.asList(MutableLongTuple t)
Returns a view on the given tuple as a list that does not
allow structural modifications.
|
static MutableLongTuple |
LongTuples.clamp(LongTuple t,
long min,
long max,
MutableLongTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableLongTuple |
LongTuples.clamp(LongTuple t,
LongTuple min,
LongTuple max,
MutableLongTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableLongTuple |
LongTuples.divide(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Divide the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableLongTuple |
LongTupleFunctions.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 |
LongTupleFunctions.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 boolean |
LongTuples.incrementColexicographically(LongTuple t,
LongTuple min,
LongTuple max,
MutableLongTuple result)
Colexicographically increment the given tuple in the given range, and
store the result in the given result tuple.
|
static boolean |
LongTuples.incrementLexicographically(LongTuple t,
LongTuple min,
LongTuple max,
MutableLongTuple result)
Lexicographically increment the given tuple in the given range, and
store the result in the given result tuple.
|
static MutableLongTuple |
LongTupleCollections.max(Collection<? extends LongTuple> tuples,
MutableLongTuple result)
Computes the component-wise maximum of the given collection
of tuples.
|
static MutableLongTuple |
LongTuples.max(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Compute the element-wise maximum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableLongTuple |
LongTupleCollections.min(Collection<? extends LongTuple> tuples,
MutableLongTuple result)
Computes the component-wise minimum of the given collection
of tuples.
|
static MutableLongTuple |
LongTuples.min(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Compute the element-wise minimum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableLongTuple |
LongTuples.multiply(LongTuple t0,
long factor,
MutableLongTuple result)
Multiply the given input tuple with the given factor, and
store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.multiply(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Multiply the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableLongTuple |
LongTuples.negate(LongTuple t0,
MutableLongTuple result)
Negates the given tuple, and store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.reverse(LongTuple t,
MutableLongTuple result)
Reverse the given tuple.
|
static MutableLongTuple |
LongTuples.reversed(MutableLongTuple t)
Creates a new tuple that is a reversed view on the given
tuple.
|
static void |
LongTuples.set(MutableLongTuple t,
long v)
Set all elements of the given tuple to the given value
|
static MutableLongTuple |
LongTuples.subtract(LongTuple t0,
long value,
MutableLongTuple result)
Subtract the given value from all elements of the given input
tuple, and store the result in the given result tuple.
|
static MutableLongTuple |
LongTuples.subtract(LongTuple t0,
LongTuple t1,
MutableLongTuple result)
Subtract the given input tuples, and store the result in
the given result tuple.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
LongTupleCollections.create(int dimensions,
int numElements,
Collection<? super MutableLongTuple> target)
Create the specified number of tuples with the given dimensions
(
size), all initialized to zero, and place
them into the given target collection |
Copyright © 2015. All Rights Reserved.