public class ULongArrayIndexer extends ULongIndexer
long[]
array, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected long[] |
array
The backing array.
|
VALUE_BYTES
Constructor and Description |
---|
ULongArrayIndexer(long[] array)
Calls
ULongArrayIndexer(array, Index.create(array.length)) . |
ULongArrayIndexer(long[] array,
Index index)
Constructor to set the
array and Indexer.index . |
ULongArrayIndexer(long[] array,
long... sizes)
Calls
ULongArrayIndexer(array, Index.create(sizes)) . |
ULongArrayIndexer(long[] array,
long[] sizes,
long[] strides)
Calls
ULongArrayIndexer(array, Index.create(sizes, strides)) . |
Modifier and Type | Method and Description |
---|---|
long[] |
array()
Returns the backing array, 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
public ULongArrayIndexer(long[] array)
ULongArrayIndexer(array, Index.create(array.length))
.public ULongArrayIndexer(long[] array, long... sizes)
ULongArrayIndexer(array, Index.create(sizes))
.public ULongArrayIndexer(long[] array, long[] sizes, long[] strides)
ULongArrayIndexer(array, Index.create(sizes, strides))
.public ULongArrayIndexer(long[] array, Index index)
array
and Indexer.index
.public long[] array()
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 © 2023. All rights reserved.