| Package | Description |
|---|---|
| de.javagl.nd.arrays.d |
Multidimensional arrays of
double values |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableDoubleArrayND
Interface describing a mutable multidimensional
array of
double values. |
| Modifier and Type | Method and Description |
|---|---|
static DoubleArrayND |
DoubleArraysND.createSubArray(DoubleArrayND parent,
IntTuple fromIndices,
IntTuple toIndices)
Creates a new array that is a view on the specified portion
of the given parent.
|
default DoubleArrayND |
DoubleArrayND.subArray(IntTuple fromIndices,
IntTuple toIndices) |
static DoubleArrayND |
DoubleArraysND.wrap(DoubleTuple t,
IntTuple size)
Creates a view on the given tuple as a
DoubleArrayND. |
| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleArrayND |
DoubleArrayFunctionsND.apply(DoubleArrayND a0,
DoubleArrayND a1,
java.util.function.DoubleBinaryOperator op,
MutableDoubleArrayND 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 MutableDoubleArrayND |
DoubleArrayFunctionsND.apply(DoubleArrayND a0,
java.util.function.DoubleUnaryOperator op,
MutableDoubleArrayND 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.ToDoubleFunction<IntTuple> |
DoubleArraysND.asFunction(DoubleArrayND array)
Returns a view on the given
DoubleArrayND as a function
that maps coordinates to array entry values. |
static DoubleArrayND |
DoubleArraysND.createSubArray(DoubleArrayND parent,
IntTuple fromIndices,
IntTuple toIndices)
Creates a new array that is a view on the specified portion
of the given parent.
|
static double |
DoubleArraysND.max(DoubleArrayND array)
Returns the maximum value in the given array, or
Double.NEGATIVE_INFINITY if the given array
has a size of 0. |
static double |
DoubleArraysND.min(DoubleArrayND array)
Returns the minimum value in the given array, or
Double.POSITIVE_INFINITY if the given array
has a size of 0. |
static String |
DoubleArraysND.toFormattedString(DoubleArrayND array)
Creates a formatted representation of the given array.
|
static String |
DoubleArraysND.toFormattedString(DoubleArrayND array,
String format)
Creates a formatted representation of the given array.
|
Copyright © 2015. All Rights Reserved.