Modifier and Type | Field and Description |
---|---|
static Array.IndexingOrder |
DEFAULT_ORDER
The default storage order shall be
Array.IndexingOrder.FAR . |
static ModalFftService |
fftService
A global service providing access to FFT operations.
|
static int |
fieldPrecision
The field precision to use when printing.
|
static int |
fieldWidth
The field width to use when printing.
|
static ModalArrayIoKernel |
ioKernel
The array I/O kernel.
|
static ModalArrayKernel |
opKernel
The array operations kernel.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
canonicalizeSlices(int[][] srcSlices,
int[] srcDims,
int[][] dstSlices,
int[] dstDims)
Canonicalizes the alternate slicing specification.
|
static int[] |
canonicalizeSlices(int[] srcDims,
int[] dstDims,
int[][] dstSlices)
Canonicalizes the alternate slicing specification.
|
static int[] |
canonicalizeSlices(int nSlices,
int[] srcDims,
int[][] srcSlices)
Canonicalizes the alternate slicing specification.
|
static int[] |
createReverseSlices(int[] srcDims,
int[] opDims)
Creates a slicing specification for
Array.reverse(int...) . |
static void |
format(int width,
int precision)
Sets the formatting parameters
fieldWidth and fieldPrecision . |
static void |
formatEmptyArray(Formatter f,
int[] dims)
Formats an empty array message.
|
static double[] |
formatRescale(Formatter f,
int exponent,
double[] values)
Formats a potential rescale message if the given exponent is too large or too small.
|
static void |
formatSlice(Formatter f,
String format,
Object values,
int[] indices,
int offset,
int nRows,
int nCols,
boolean complex)
Formats a two-dimensional slice of an array for display.
|
static void |
formatSparseArray(Formatter f,
String valueFormat,
String indexFormat,
Object values,
int[] indices,
int[] strides)
Formats a sparse array for display.
|
static int[] |
inferDimensions(int[] dims,
int len,
boolean complex)
Infers dimensions from the backing array length if the number of declared dimensions is
0 . |
static int[] |
logical(int physical,
int[] strides,
int[] logical)
Computes the logical index from the given physical index and strides.
|
public static final ModalArrayKernel opKernel
public static final ModalArrayIoKernel ioKernel
public static final ModalFftService fftService
public static final Array.IndexingOrder DEFAULT_ORDER
Array.IndexingOrder.FAR
.public static int fieldWidth
public static int fieldPrecision
public static final int[] canonicalizeSlices(int[][] srcSlices, int[] srcDims, int[][] dstSlices, int[] dstDims)
public static final int[] canonicalizeSlices(int[] srcDims, int[] dstDims, int[][] dstSlices)
public static final int[] canonicalizeSlices(int nSlices, int[] srcDims, int[][] srcSlices)
public static final int[] createReverseSlices(int[] srcDims, int[] opDims)
Array.reverse(int...)
.public static final void format(int width, int precision)
fieldWidth
and fieldPrecision
.width
- the number width.precision
- the number precision.public static final void formatSlice(Formatter f, String format, Object values, int[] indices, int offset, int nRows, int nCols, boolean complex)
f
- the target Formatter
.format
- the formatting string.values
- the values.indices
- the physical indices.offset
- the physical index offset.nRows
- the number of rows in the slice.nCols
- the number of columns in the slice.complex
- whether the values are complex.public static final void formatEmptyArray(Formatter f, int[] dims)
f
- the target Formatter
.dims
- the dimensions.public static final double[] formatRescale(Formatter f, int exponent, double[] values)
f
- the target Formatter
.exponent
- the exponent.values
- the values.public static final void formatSparseArray(Formatter f, String valueFormat, String indexFormat, Object values, int[] indices, int[] strides)
f
- the target Formatter
.valueFormat
- the formatting string for values.indexFormat
- the formatting string for logical indices.values
- the values.indices
- the physical indices.strides
- the strides.public static final int[] logical(int physical, int[] strides, int[] logical)
physical
- the physical index.strides
- the strides.logical
- the logical index.public static final int[] inferDimensions(int[] dims, int len, boolean complex)
0
.dims
- the declared dimensions.len
- the array length.complex
- whether the array contains complex values.