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