public abstract class ULongIndexer extends Indexer
long
primitive type, treated as unsigned.Modifier and Type | Field and Description |
---|---|
static int |
VALUE_BYTES
The number of bytes used to represent a long.
|
indexable, ONE_STRIDE, sizes, strides
Modifier | Constructor and Description |
---|---|
protected |
ULongIndexer(long[] sizes,
long[] strides) |
Modifier and Type | Method and Description |
---|---|
static ULongIndexer |
create(long[] array)
Returns
new ULongArrayIndexer(array) |
static ULongIndexer |
create(long[] array,
long... sizes)
Returns
new ULongArrayIndexer(array, sizes) |
static ULongIndexer |
create(long[] array,
long[] sizes,
long[] strides)
Returns
new ULongArrayIndexer(array, sizes, strides) |
static ULongIndexer |
create(LongBuffer buffer)
Returns
new ULongBufferIndexer(buffer) |
static ULongIndexer |
create(LongBuffer buffer,
long... sizes)
Returns
new ULongBufferIndexer(buffer, sizes) |
static ULongIndexer |
create(LongBuffer buffer,
long[] sizes,
long[] strides)
Returns
new ULongBufferIndexer(buffer, sizes, strides) |
static ULongIndexer |
create(LongPointer pointer)
Returns
create(pointer, { pointer.limit() - pointer.position() }, { 1 }, true) |
static ULongIndexer |
create(LongPointer pointer,
long... sizes)
Returns
create(pointer, sizes, strides(sizes)) |
static ULongIndexer |
create(LongPointer pointer,
long[] sizes,
long[] strides)
Returns
create(pointer, sizes, strides, true) |
static ULongIndexer |
create(LongPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Creates a long indexer to access efficiently the data of a pointer.
|
static long |
fromBigInteger(BigInteger l) |
abstract BigInteger |
get(long... indices)
Returns
array/buffer[index(indices)] |
abstract BigInteger |
get(long i)
Returns
array/buffer[i] |
ULongIndexer |
get(long[] indices,
BigInteger[] l)
Returns
this where l = array/buffer[index(indices)] |
abstract 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)
Returns
this where l = array/buffer[i] |
abstract ULongIndexer |
get(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i] |
abstract BigInteger |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
ULongIndexer |
get(long i,
long j,
BigInteger[] l)
Returns
this where l = array/buffer[i * strides[0] + j] |
abstract 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] |
abstract BigInteger |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
double |
getDouble(long... indices)
Calls
get(int...indices) and returns the value as a double. |
ULongIndexer |
put(long[] indices,
BigInteger... l)
Returns
this where array/buffer[index(indices)] = l |
abstract ULongIndexer |
put(long[] indices,
BigInteger l)
Returns
this where array/buffer[index(indices)] = l |
abstract 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 |
abstract ULongIndexer |
put(long i,
BigInteger l)
Returns
this where array/buffer[i] = l |
abstract 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 |
abstract ULongIndexer |
put(long i,
long j,
BigInteger l)
Returns
this where array/buffer[i * strides[0] + j] = l |
abstract 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] |
abstract ULongIndexer |
put(long i,
long j,
long k,
BigInteger l)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = l |
ULongIndexer |
putDouble(long[] indices,
double l)
Casts value to primitive type and calls
put(long[] indices, <type> value) . |
static BigInteger |
toBigInteger(long l) |
public static final int VALUE_BYTES
public static ULongIndexer create(long[] array)
new ULongArrayIndexer(array)
public static ULongIndexer create(LongBuffer buffer)
new ULongBufferIndexer(buffer)
public static ULongIndexer create(LongPointer pointer)
create(pointer, { pointer.limit() - pointer.position() }, { 1 }, true)
public static ULongIndexer create(long[] array, long... sizes)
new ULongArrayIndexer(array, sizes)
public static ULongIndexer create(LongBuffer buffer, long... sizes)
new ULongBufferIndexer(buffer, sizes)
public static ULongIndexer create(LongPointer pointer, long... sizes)
create(pointer, sizes, strides(sizes))
public static ULongIndexer create(long[] array, long[] sizes, long[] strides)
new ULongArrayIndexer(array, sizes, strides)
public static ULongIndexer create(LongBuffer buffer, long[] sizes, long[] strides)
new ULongBufferIndexer(buffer, sizes, strides)
public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides)
create(pointer, sizes, strides, true)
public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
pointer
- data to access via a buffer or to copy to an arraydirect
- true
to use a direct buffer, see Indexer
for detailspublic static BigInteger toBigInteger(long l)
public static long fromBigInteger(BigInteger l)
public abstract BigInteger get(long i)
array/buffer[i]
public ULongIndexer get(long i, BigInteger[] l)
this
where l = array/buffer[i]
public abstract ULongIndexer get(long i, BigInteger[] l, int offset, int length)
this
where l[offset:offset + length] = array/buffer[i]
public abstract BigInteger get(long i, long j)
array/buffer[i * strides[0] + j]
public ULongIndexer get(long i, long j, BigInteger[] l)
this
where l = array/buffer[i * strides[0] + j]
public abstract ULongIndexer get(long i, long j, BigInteger[] l, int offset, int length)
this
where l[offset:offset + length] = array/buffer[i * strides[0] + j]
public abstract BigInteger get(long i, long j, long k)
array/buffer[i * strides[0] + j * strides[1] + k]
public abstract BigInteger get(long... indices)
array/buffer[index(indices)]
public ULongIndexer get(long[] indices, BigInteger[] l)
this
where l = array/buffer[index(indices)]
public abstract ULongIndexer get(long[] indices, BigInteger[] l, int offset, int length)
this
where l[offset:offset + length] = array/buffer[index(indices)]
public abstract ULongIndexer put(long i, BigInteger l)
this
where array/buffer[i] = l
public ULongIndexer put(long i, BigInteger... l)
this
where array/buffer[i] = l
public abstract ULongIndexer put(long i, BigInteger[] l, int offset, int length)
this
where array/buffer[i] = l[offset:offset + length]
public abstract ULongIndexer put(long i, long j, BigInteger l)
this
where array/buffer[i * strides[0] + j] = l
public ULongIndexer put(long i, long j, BigInteger... l)
this
where array/buffer[i * strides[0] + j] = l
public abstract ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
this
where array/buffer[i * strides[0] + j] = l[offset:offset + length]
public abstract ULongIndexer put(long i, long j, long k, BigInteger l)
this
where array/buffer[i * strides[0] + j * strides[1] + k] = l
public abstract ULongIndexer put(long[] indices, BigInteger l)
this
where array/buffer[index(indices)] = l
public ULongIndexer put(long[] indices, BigInteger... l)
this
where array/buffer[index(indices)] = l
public abstract ULongIndexer put(long[] indices, BigInteger[] l, int offset, int length)
this
where array/buffer[index(indices)] = l[offset:offset + length]
public double getDouble(long... indices)
Indexer
get(int...indices)
and returns the value as a double.public ULongIndexer putDouble(long[] indices, double l)
Indexer
put(long[] indices, <type> value)
.Copyright © 2020. All rights reserved.