public class UIntBufferIndexer extends UIntIndexer
IntBuffer
, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected IntBuffer |
buffer
The backing buffer.
|
VALUE_BYTES
indexable, ONE_STRIDE, sizes, strides
Constructor and Description |
---|
UIntBufferIndexer(IntBuffer buffer)
Calls
UIntBufferIndexer(buffer, { buffer.limit() }, { 1 }) . |
UIntBufferIndexer(IntBuffer buffer,
long... sizes)
Calls
UIntBufferIndexer(buffer, sizes, strides(sizes)) . |
UIntBufferIndexer(IntBuffer buffer,
long[] sizes,
long[] 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[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, putDouble
protected IntBuffer buffer
public UIntBufferIndexer(IntBuffer buffer)
UIntBufferIndexer(buffer, { buffer.limit() }, { 1 })
.public UIntBufferIndexer(IntBuffer buffer, long... sizes)
UIntBufferIndexer(buffer, sizes, strides(sizes))
.public UIntBufferIndexer(IntBuffer buffer, long[] sizes, long[] strides)
public Buffer buffer()
Indexer
null
if nonepublic long get(long i)
UIntIndexer
array/buffer[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[i]
get
in class UIntIndexer
public long get(long i, long j)
UIntIndexer
array/buffer[i * strides[0] + 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[i * strides[0] + j]
get
in class UIntIndexer
public long get(long i, long j, long k)
UIntIndexer
array/buffer[i * strides[0] + j * strides[1] + 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[i] = n
put
in class UIntIndexer
public UIntIndexer put(long i, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[i] = n[offset:offset + length]
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long n)
UIntIndexer
this
where array/buffer[i * strides[0] + j] = n
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[i * strides[0] + 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[i * strides[0] + j * strides[1] + 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 © 2020. All rights reserved.