public class UIntArrayIndexer extends UIntIndexer
int[] array, treated as unsigned.| Modifier and Type | Field and Description |
|---|---|
protected int[] |
array
The backing array.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
UIntArrayIndexer(int[] array)
Calls
UIntArrayIndexer(array, { array.length }, { 1 }). |
UIntArrayIndexer(int[] array,
long... sizes)
Calls
UIntArrayIndexer(array, sizes, strides(sizes)). |
UIntArrayIndexer(int[] array,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
array()
Returns the backing array, or
null if none |
long |
get(long... indices)
Returns
array/buffer[index(indices)] |
long |
get(long i)
Returns
array/buffer[i] |
UIntIndexer |
get(long[] indices,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(indices)] |
long |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
UIntIndexer |
get(long i,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[i] |
long |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
UIntIndexer |
get(long i,
long j,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[i * strides[0] + j] |
UIntIndexer |
put(long[] indices,
long n)
Returns
this where array/buffer[index(indices)] = n |
UIntIndexer |
put(long[] indices,
long[] m,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long n)
Returns
this where array/buffer[i] = n |
UIntIndexer |
put(long i,
long[] m,
int offset,
int length)
Returns
this where array/buffer[i] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long n)
Returns
this where array/buffer[i * strides[0] + j] = n |
UIntIndexer |
put(long i,
long j,
long[] m,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long k,
long n)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = n |
void |
release()
Makes sure changes are reflected onto the backing memory and clears any references.
|
create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDoublepublic UIntArrayIndexer(int[] array)
UIntArrayIndexer(array, { array.length }, { 1 }).public UIntArrayIndexer(int[] array,
long... sizes)
UIntArrayIndexer(array, sizes, strides(sizes)).public UIntArrayIndexer(int[] array,
long[] sizes,
long[] strides)
public int[] array()
Indexernull if nonepublic long get(long i)
UIntIndexerarray/buffer[i]get in class UIntIndexerpublic UIntIndexer get(long i, long[] m, int offset, int length)
UIntIndexerthis where n[offset:offset + length] = array/buffer[i]get in class UIntIndexerpublic long get(long i,
long j)
UIntIndexerarray/buffer[i * strides[0] + j]get in class UIntIndexerpublic UIntIndexer get(long i, long j, long[] m, int offset, int length)
UIntIndexerthis where n[offset:offset + length] = array/buffer[i * strides[0] + j]get in class UIntIndexerpublic long get(long i,
long j,
long k)
UIntIndexerarray/buffer[i * strides[0] + j * strides[1] + k]get in class UIntIndexerpublic long get(long... indices)
UIntIndexerarray/buffer[index(indices)]get in class UIntIndexerpublic UIntIndexer get(long[] indices, long[] m, int offset, int length)
UIntIndexerthis where n[offset:offset + length] = array/buffer[index(indices)]get in class UIntIndexerpublic UIntIndexer put(long i, long n)
UIntIndexerthis where array/buffer[i] = nput in class UIntIndexerpublic UIntIndexer put(long i, long[] m, int offset, int length)
UIntIndexerthis where array/buffer[i] = n[offset:offset + length]put in class UIntIndexerpublic UIntIndexer put(long i, long j, long n)
UIntIndexerthis where array/buffer[i * strides[0] + j] = nput in class UIntIndexerpublic UIntIndexer put(long i, long j, long[] m, int offset, int length)
UIntIndexerthis where array/buffer[i * strides[0] + j] = n[offset:offset + length]put in class UIntIndexerpublic UIntIndexer put(long i, long j, long k, long n)
UIntIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = nput in class UIntIndexerpublic UIntIndexer put(long[] indices, long n)
UIntIndexerthis where array/buffer[index(indices)] = nput in class UIntIndexerpublic UIntIndexer put(long[] indices, long[] m, int offset, int length)
UIntIndexerthis where array/buffer[index(indices)] = n[offset:offset + length]put in class UIntIndexerCopyright © 2020. All rights reserved.