public class UIntBufferIndexer extends UIntIndexer
IntBuffer, treated as unsigned.| Modifier and Type | Field and Description |
|---|---|
protected IntBuffer |
buffer
The backing buffer.
|
VALUE_BYTES| Constructor and Description |
|---|
UIntBufferIndexer(IntBuffer buffer)
Calls
UIntBufferIndexer(buffer, Index.create(buffer.limit())). |
UIntBufferIndexer(IntBuffer buffer,
Index index)
Constructor to set the
buffer and Indexer.index. |
UIntBufferIndexer(IntBuffer buffer,
long... sizes)
Calls
UIntBufferIndexer(buffer, Index.create(sizes)). |
UIntBufferIndexer(IntBuffer buffer,
long[] sizes,
long[] strides)
Calls
UIntBufferIndexer(buffer, Index.create(sizes, strides)). |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer()
Returns the backing buffer, 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, putDoubleprotected IntBuffer buffer
public UIntBufferIndexer(IntBuffer buffer)
UIntBufferIndexer(buffer, Index.create(buffer.limit())).public UIntBufferIndexer(IntBuffer buffer, long... sizes)
UIntBufferIndexer(buffer, Index.create(sizes)).public UIntBufferIndexer(IntBuffer buffer, long[] sizes, long[] strides)
UIntBufferIndexer(buffer, Index.create(sizes, strides)).public UIntBufferIndexer(IntBuffer buffer, Index index)
buffer and Indexer.index.public Buffer buffer()
Indexernull if nonepublic UIntIndexer reindex(Index index)
Indexerpublic long get(long i)
UIntIndexerarray/buffer[index(i)]get in class UIntIndexerpublic UIntIndexer get(long i, long[] m, int offset, int length)
UIntIndexerthis where n[offset:offset + length] = array/buffer[index(i)]get in class UIntIndexerpublic long get(long i,
long j)
UIntIndexerarray/buffer[index(i, 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[index(i, j)]get in class UIntIndexerpublic long get(long i,
long j,
long k)
UIntIndexerarray/buffer[index(i, j, 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[index(i)] = nput in class UIntIndexerpublic UIntIndexer put(long i, long[] m, int offset, int length)
UIntIndexerthis where array/buffer[index(i)] = n[offset:offset + length]put in class UIntIndexerpublic UIntIndexer put(long i, long j, long n)
UIntIndexerthis where array/buffer[index(i, j)] = nput in class UIntIndexerpublic UIntIndexer put(long i, long j, long[] m, int offset, int length)
UIntIndexerthis where array/buffer[index(i, j)] = n[offset:offset + length]put in class UIntIndexerpublic UIntIndexer put(long i, long j, long k, long n)
UIntIndexerthis where array/buffer[index(i, j, 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 © 2023. All rights reserved.