public class MappingOps extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assign(Object srcV,
int[] srcIndices,
Object dstV,
int[] dstIndices)
Assigns source values to destination values based on arrays of physical indices.
|
static int[] |
assignMappingIndices(int nIndices,
int[] dims,
int[] strides)
Creates an array of physical indices.
|
static int[] |
assignSlicingIndices(int nIndices,
int[] strides,
int[][] sliceIndices)
Creates an array of physical slicing indices.
|
static int |
checkDimensions(int len,
int[] dims,
int[] strides)
Checks an array's dimensions and strides.
|
static void |
map(int[] bounds,
Object srcV,
int[] srcD,
int[] srcS,
Object dstV,
int[] dstD,
int[] dstS)
A mapping operation in support of
JavaArrayKernel.map(int[], Object, int[], int[], Object, int[], int[]) . |
static void |
slice(int[] slices,
Object srcV,
int[] srcD,
int[] srcS,
Object dstV,
int[] dstD,
int[] dstS)
A slicing operation in support of
JavaArrayKernel.slice(int[], Object, int[], int[], Object, int[], int[]) . |
public static final int[] assignMappingIndices(int nIndices, int[] dims, int[] strides)
nIndices
- the number of indices.dims
- the mapping dimensions.strides
- the strides.public static final int[] assignSlicingIndices(int nIndices, int[] strides, int[][] sliceIndices)
nIndices
- the number of indices.strides
- the strides.sliceIndices
- the indices to slice on arranged by dimension.public static final int checkDimensions(int len, int[] dims, int[] strides)
len
- the array length.dims
- the dimensions.strides
- the strides.public static final void assign(Object srcV, int[] srcIndices, Object dstV, int[] dstIndices)
srcV
- the source array.srcIndices
- the source indices.dstV
- the destination array.dstIndices
- the destination indices.public static final void map(int[] bounds, Object srcV, int[] srcD, int[] srcS, Object dstV, int[] dstD, int[] dstS)
JavaArrayKernel.map(int[], Object, int[], int[], Object, int[], int[])
.public static final void slice(int[] slices, Object srcV, int[] srcD, int[] srcS, Object dstV, int[] dstD, int[] dstS)
JavaArrayKernel.slice(int[], Object, int[], int[], Object, int[], int[])
.