public class UIntArrayIndexer extends UIntIndexer
int[]
array, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected int[] |
array
The backing array.
|
VALUE_BYTES
Constructor and Description |
---|
UIntArrayIndexer(int[] array)
Calls
UIntArrayIndexer(array, Index.create(array.length)) . |
UIntArrayIndexer(int[] array,
Index index)
Constructor to set the
array and Indexer.index . |
UIntArrayIndexer(int[] array,
long... sizes)
Calls
UIntArrayIndexer(array, Index.create(sizes)) . |
UIntArrayIndexer(int[] array,
long[] sizes,
long[] strides)
Calls
UIntArrayIndexer(array, Index.create(sizes, 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[index(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[index(i, j)] |
UIntIndexer |
get(long i,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i)] |
long |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
UIntIndexer |
get(long i,
long j,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i, 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[index(i)] = n |
UIntIndexer |
put(long i,
long[] m,
int offset,
int length)
Returns
this where array/buffer[index(i)] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long n)
Returns
this where array/buffer[index(i, j)] = n |
UIntIndexer |
put(long i,
long j,
long[] m,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long k,
long n)
Returns
this where array/buffer[index(i, j, k)] = n |
UIntIndexer |
reindex(Index index)
Returns a new Indexer using the same data, but with a different Index.
|
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, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
public UIntArrayIndexer(int[] array)
UIntArrayIndexer(array, Index.create(array.length))
.public UIntArrayIndexer(int[] array, long... sizes)
UIntArrayIndexer(array, Index.create(sizes))
.public UIntArrayIndexer(int[] array, long[] sizes, long[] strides)
UIntArrayIndexer(array, Index.create(sizes, strides))
.public UIntArrayIndexer(int[] array, Index index)
array
and Indexer.index
.public int[] array()
Indexer
null
if nonepublic UIntIndexer reindex(Index index)
Indexer
public long get(long i)
UIntIndexer
array/buffer[index(i)]
get
in class UIntIndexer
public UIntIndexer get(long i, long[] m, int offset, int length)
UIntIndexer
this
where n[offset:offset + length] = array/buffer[index(i)]
get
in class UIntIndexer
public long get(long i, long j)
UIntIndexer
array/buffer[index(i, j)]
get
in class UIntIndexer
public UIntIndexer get(long i, long j, long[] m, int offset, int length)
UIntIndexer
this
where n[offset:offset + length] = array/buffer[index(i, j)]
get
in class UIntIndexer
public long get(long i, long j, long k)
UIntIndexer
array/buffer[index(i, j, k)]
get
in class UIntIndexer
public long get(long... indices)
UIntIndexer
array/buffer[index(indices)]
get
in class UIntIndexer
public UIntIndexer get(long[] indices, long[] m, int offset, int length)
UIntIndexer
this
where n[offset:offset + length] = array/buffer[index(indices)]
get
in class UIntIndexer
public UIntIndexer put(long i, long n)
UIntIndexer
this
where array/buffer[index(i)] = n
put
in class UIntIndexer
public UIntIndexer put(long i, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[index(i)] = n[offset:offset + length]
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long n)
UIntIndexer
this
where array/buffer[index(i, j)] = n
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[index(i, j)] = n[offset:offset + length]
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long k, long n)
UIntIndexer
this
where array/buffer[index(i, j, k)] = n
put
in class UIntIndexer
public UIntIndexer put(long[] indices, long n)
UIntIndexer
this
where array/buffer[index(indices)] = n
put
in class UIntIndexer
public UIntIndexer put(long[] indices, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[index(indices)] = n[offset:offset + length]
put
in class UIntIndexer
Copyright © 2024. All rights reserved.