public class ULongBufferIndexer extends ULongIndexer
LongBuffer
, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected LongBuffer |
buffer
The backing buffer.
|
VALUE_BYTES
indexable, ONE_STRIDE, sizes, strides
Constructor and Description |
---|
ULongBufferIndexer(LongBuffer buffer)
Calls
ULongBufferIndexer(buffer, { buffer.limit() }, { 1 }) . |
ULongBufferIndexer(LongBuffer buffer,
long... sizes)
Calls
ULongBufferIndexer(buffer, sizes, strides(sizes)) . |
ULongBufferIndexer(LongBuffer buffer,
long[] sizes,
long[] strides)
|
Modifier and Type | Method and Description |
---|---|
Buffer |
buffer()
Returns the backing buffer, or
null if none |
BigInteger |
get(long... indices)
Returns
array/buffer[index(indices)] |
BigInteger |
get(long i)
Returns
array/buffer[i] |
ULongIndexer |
get(long[] indices,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(indices)] |
ULongIndexer |
get(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i] |
BigInteger |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
ULongIndexer |
get(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i * strides[0] + j] |
BigInteger |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
ULongIndexer |
put(long[] indices,
BigInteger l)
Returns
this where array/buffer[index(indices)] = l |
ULongIndexer |
put(long[] indices,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
BigInteger l)
Returns
this where array/buffer[i] = l |
ULongIndexer |
put(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[i] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
BigInteger l)
Returns
this where array/buffer[i * strides[0] + j] = l |
ULongIndexer |
put(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
long k,
BigInteger l)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = l |
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, fromBigInteger, get, get, get, getDouble, put, put, put, putDouble, toBigInteger
protected LongBuffer buffer
public ULongBufferIndexer(LongBuffer buffer)
ULongBufferIndexer(buffer, { buffer.limit() }, { 1 })
.public ULongBufferIndexer(LongBuffer buffer, long... sizes)
ULongBufferIndexer(buffer, sizes, strides(sizes))
.public ULongBufferIndexer(LongBuffer buffer, long[] sizes, long[] strides)
public Buffer buffer()
Indexer
null
if nonepublic BigInteger get(long i)
ULongIndexer
array/buffer[i]
get
in class ULongIndexer
public ULongIndexer get(long i, BigInteger[] l, int offset, int length)
ULongIndexer
this
where l[offset:offset + length] = array/buffer[i]
get
in class ULongIndexer
public BigInteger get(long i, long j)
ULongIndexer
array/buffer[i * strides[0] + j]
get
in class ULongIndexer
public ULongIndexer get(long i, long j, BigInteger[] l, int offset, int length)
ULongIndexer
this
where l[offset:offset + length] = array/buffer[i * strides[0] + j]
get
in class ULongIndexer
public BigInteger get(long i, long j, long k)
ULongIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
get
in class ULongIndexer
public BigInteger get(long... indices)
ULongIndexer
array/buffer[index(indices)]
get
in class ULongIndexer
public ULongIndexer get(long[] indices, BigInteger[] l, int offset, int length)
ULongIndexer
this
where l[offset:offset + length] = array/buffer[index(indices)]
get
in class ULongIndexer
public ULongIndexer put(long i, BigInteger l)
ULongIndexer
this
where array/buffer[i] = l
put
in class ULongIndexer
public ULongIndexer put(long i, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[i] = l[offset:offset + length]
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger l)
ULongIndexer
this
where array/buffer[i * strides[0] + j] = l
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[i * strides[0] + j] = l[offset:offset + length]
put
in class ULongIndexer
public ULongIndexer put(long i, long j, long k, BigInteger l)
ULongIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = l
put
in class ULongIndexer
public ULongIndexer put(long[] indices, BigInteger l)
ULongIndexer
this
where array/buffer[index(indices)] = l
put
in class ULongIndexer
public ULongIndexer put(long[] indices, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[index(indices)] = l[offset:offset + length]
put
in class ULongIndexer
Copyright © 2020. All rights reserved.