public class ULongBufferIndexer extends ULongIndexer
LongBuffer
, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected LongBuffer |
buffer
The backing buffer.
|
VALUE_BYTES
Constructor and Description |
---|
ULongBufferIndexer(LongBuffer buffer)
Calls
ULongBufferIndexer(buffer, Index.create(buffer.limit())) . |
ULongBufferIndexer(LongBuffer buffer,
Index index)
Constructor to set the
buffer and Indexer.index . |
ULongBufferIndexer(LongBuffer buffer,
long... sizes)
Calls
ULongBufferIndexer(buffer, Index.create(sizes)) . |
ULongBufferIndexer(LongBuffer buffer,
long[] sizes,
long[] strides)
Calls
ULongBufferIndexer(buffer, Index.create(sizes, 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[index(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[index(i)] |
BigInteger |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
ULongIndexer |
get(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(i, j)] |
BigInteger |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, 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[index(i)] = l |
ULongIndexer |
put(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(i)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
BigInteger l)
Returns
this where array/buffer[index(i, j)] = l |
ULongIndexer |
put(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
long k,
BigInteger l)
Returns
this where array/buffer[index(i, j, k)] = l |
ULongIndexer |
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, fromBigInteger, get, get, get, getDouble, put, put, put, putDouble, toBigInteger
protected LongBuffer buffer
public ULongBufferIndexer(LongBuffer buffer)
ULongBufferIndexer(buffer, Index.create(buffer.limit()))
.public ULongBufferIndexer(LongBuffer buffer, long... sizes)
ULongBufferIndexer(buffer, Index.create(sizes))
.public ULongBufferIndexer(LongBuffer buffer, long[] sizes, long[] strides)
ULongBufferIndexer(buffer, Index.create(sizes, strides))
.public ULongBufferIndexer(LongBuffer buffer, Index index)
buffer
and Indexer.index
.public Buffer buffer()
Indexer
null
if nonepublic ULongIndexer reindex(Index index)
Indexer
public BigInteger get(long i)
ULongIndexer
array/buffer[index(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[index(i)]
get
in class ULongIndexer
public BigInteger get(long i, long j)
ULongIndexer
array/buffer[index(i, 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[index(i, j)]
get
in class ULongIndexer
public BigInteger get(long i, long j, long k)
ULongIndexer
array/buffer[index(i, j, 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[index(i)] = l
put
in class ULongIndexer
public ULongIndexer put(long i, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[index(i)] = l[offset:offset + length]
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger l)
ULongIndexer
this
where array/buffer[index(i, j)] = l
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[index(i, 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[index(i, j, 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 © 2024. All rights reserved.