| Package | Description |
|---|---|
| de.javagl.nd.arrays.i |
Multidimensional arrays of
int values |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableIntArrayND
Interface describing a mutable multidimensional
array of
int values. |
| Modifier and Type | Method and Description |
|---|---|
static IntArrayND |
IntArraysND.createSubArray(IntArrayND parent,
IntTuple fromIndices,
IntTuple toIndices)
Creates a new array that is a view on the specified portion
of the given parent.
|
default IntArrayND |
IntArrayND.subArray(IntTuple fromIndices,
IntTuple toIndices) |
static IntArrayND |
IntArraysND.wrap(IntTuple t,
IntTuple size)
Creates a view on the given tuple as a
IntArrayND. |
| Modifier and Type | Method and Description |
|---|---|
static MutableIntArrayND |
IntArrayFunctionsND.apply(IntArrayND a0,
IntArrayND a1,
java.util.function.IntBinaryOperator op,
MutableIntArrayND result)
Applies the given binary operator to each pair of elements from the
given arrays, and stores the result in the given result array.
|
static MutableIntArrayND |
IntArrayFunctionsND.apply(IntArrayND a0,
java.util.function.IntUnaryOperator op,
MutableIntArrayND result)
Applies the given unary operator to the elements from the given array,
and stores the result in the given result array.
|
static java.util.function.ToIntFunction<IntTuple> |
IntArraysND.asFunction(IntArrayND array)
Returns a view on the given
IntArrayND as a function
that maps coordinates to array entry values. |
static IntArrayND |
IntArraysND.createSubArray(IntArrayND parent,
IntTuple fromIndices,
IntTuple toIndices)
Creates a new array that is a view on the specified portion
of the given parent.
|
static int |
IntArraysND.max(IntArrayND array)
Returns the maximum value in the given array, or
Integer.MIN_VALUE if the given array
has a size of 0. |
static int |
IntArraysND.min(IntArrayND array)
Returns the minimum value in the given array, or
Integer.MAX_VALUE if the given array
has a size of 0. |
static String |
IntArraysND.toFormattedString(IntArrayND array)
Creates a formatted representation of the given array.
|
static String |
IntArraysND.toFormattedString(IntArrayND array,
String format)
Creates a formatted representation of the given array.
|
Copyright © 2015. All Rights Reserved.