public class IntBufferIndexer extends IntIndexer
IntBuffer.Indexer.Index| Modifier and Type | Field and Description |
|---|---|
protected java.nio.IntBuffer |
buffer
The backing buffer.
|
VALUE_BYTES| Constructor and Description |
|---|
IntBufferIndexer(java.nio.IntBuffer buffer)
Calls
IntBufferIndexer(buffer, { buffer.limit() }, { 1 }). |
IntBufferIndexer(java.nio.IntBuffer buffer,
long... sizes)
Calls
IntBufferIndexer(buffer, sizes, strides(sizes)). |
IntBufferIndexer(java.nio.IntBuffer buffer,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.Buffer |
buffer()
Returns the backing buffer, or
null if none |
int |
get(long... indices)
Returns
array/buffer[index(indices)] |
int |
get(long i)
Returns
array/buffer[index(i)] |
IntIndexer |
get(long[] indices,
int[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(indices)] |
IntIndexer |
get(long i,
int[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i)] |
int |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
IntIndexer |
get(long i,
long j,
int[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i, j)] |
int |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
IntIndexer |
put(long[] indices,
int n)
Returns
this where array/buffer[index(indices)] = n |
IntIndexer |
put(long[] indices,
int[] m,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = n[offset:offset + length] |
IntIndexer |
put(long i,
int n)
Returns
this where array/buffer[index(i)] = n |
IntIndexer |
put(long i,
int[] m,
int offset,
int length)
Returns
this where array/buffer[index(i)] = n[offset:offset + length] |
IntIndexer |
put(long i,
long j,
int n)
Returns
this where array/buffer[index(i, j)] = n |
IntIndexer |
put(long i,
long j,
int[] m,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = n[offset:offset + length] |
IntIndexer |
put(long i,
long j,
long k,
int n)
Returns
this where array/buffer[index(i, j, 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 IntBufferIndexer(java.nio.IntBuffer buffer)
IntBufferIndexer(buffer, { buffer.limit() }, { 1 }).public IntBufferIndexer(java.nio.IntBuffer buffer,
long... sizes)
IntBufferIndexer(buffer, sizes, strides(sizes)).public IntBufferIndexer(java.nio.IntBuffer buffer,
long[] sizes,
long[] strides)
public java.nio.Buffer buffer()
Indexernull if nonepublic int get(long i)
IntIndexerarray/buffer[index(i)]get in class IntIndexerpublic IntIndexer get(long i, int[] m, int offset, int length)
IntIndexerthis where n[offset:offset + length] = array/buffer[index(i)]get in class IntIndexerpublic int get(long i,
long j)
IntIndexerarray/buffer[index(i, j)]get in class IntIndexerpublic IntIndexer get(long i, long j, int[] m, int offset, int length)
IntIndexerthis where n[offset:offset + length] = array/buffer[index(i, j)]get in class IntIndexerpublic int get(long i,
long j,
long k)
IntIndexerarray/buffer[index(i, j, k)]get in class IntIndexerpublic int get(long... indices)
IntIndexerarray/buffer[index(indices)]get in class IntIndexerpublic IntIndexer get(long[] indices, int[] m, int offset, int length)
IntIndexerthis where n[offset:offset + length] = array/buffer[index(indices)]get in class IntIndexerpublic IntIndexer put(long i, int n)
IntIndexerthis where array/buffer[index(i)] = nput in class IntIndexerpublic IntIndexer put(long i, int[] m, int offset, int length)
IntIndexerthis where array/buffer[index(i)] = n[offset:offset + length]put in class IntIndexerpublic IntIndexer put(long i, long j, int n)
IntIndexerthis where array/buffer[index(i, j)] = nput in class IntIndexerpublic IntIndexer put(long i, long j, int[] m, int offset, int length)
IntIndexerthis where array/buffer[index(i, j)] = n[offset:offset + length]put in class IntIndexerpublic IntIndexer put(long i, long j, long k, int n)
IntIndexerthis where array/buffer[index(i, j, k)] = nput in class IntIndexerpublic IntIndexer put(long[] indices, int n)
IntIndexerthis where array/buffer[index(indices)] = nput in class IntIndexerpublic IntIndexer put(long[] indices, int[] m, int offset, int length)
IntIndexerthis where array/buffer[index(indices)] = n[offset:offset + length]put in class IntIndexer