public abstract class LongIndexer extends Indexer
long primitive type.| Modifier and Type | Field and Description |
|---|---|
static int |
VALUE_BYTES
The number of bytes used to represent a long.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LongIndexer(Index index) |
protected |
LongIndexer(long[] sizes,
long[] strides) |
| Modifier and Type | Method and Description |
|---|---|
static LongIndexer |
create(long[] array)
Returns
new LongArrayIndexer(array) |
static LongIndexer |
create(long[] array,
Index index)
Returns
new LongArrayIndexer(array, index) |
static LongIndexer |
create(long[] array,
long... sizes)
Returns
new LongArrayIndexer(array, sizes) |
static LongIndexer |
create(long[] array,
long[] sizes,
long[] strides)
Returns
new LongArrayIndexer(array, sizes, strides) |
static LongIndexer |
create(LongBuffer buffer)
Returns
new LongBufferIndexer(buffer) |
static LongIndexer |
create(LongBuffer buffer,
Index index)
Returns
new LongBufferIndexer(buffer, index) |
static LongIndexer |
create(LongBuffer buffer,
long... sizes)
Returns
new LongBufferIndexer(buffer, sizes) |
static LongIndexer |
create(LongBuffer buffer,
long[] sizes,
long[] strides)
Returns
new LongBufferIndexer(buffer, sizes, strides) |
static LongIndexer |
create(LongPointer pointer)
Returns
new LongRawIndexer(pointer) |
static LongIndexer |
create(LongPointer pointer,
Index index)
Returns
new LongRawIndexer(pointer, index) |
static LongIndexer |
create(LongPointer pointer,
Index index,
boolean direct)
Creates a long indexer to access efficiently the data of a pointer.
|
static LongIndexer |
create(LongPointer pointer,
long... sizes)
Returns
new LongRawIndexer(pointer, sizes) |
static LongIndexer |
create(LongPointer pointer,
long[] sizes,
long[] strides)
Returns
new LongRawIndexer(pointer, sizes, strides) |
static LongIndexer |
create(LongPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Returns
create(pointer, Index.create(sizes, strides), direct) |
abstract long |
get(long... indices)
Returns
array/buffer[index(indices)] |
abstract long |
get(long i)
Returns
array/buffer[index(i)] |
LongIndexer |
get(long[] indices,
long[] l)
Returns
this where l = array/buffer[index(indices)] |
abstract LongIndexer |
get(long[] indices,
long[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(indices)] |
abstract long |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
LongIndexer |
get(long i,
long[] l)
Returns
this where l = array/buffer[index(i)] |
abstract LongIndexer |
get(long i,
long[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(i)] |
abstract long |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
LongIndexer |
get(long i,
long j,
long[] l)
Returns
this where l = array/buffer[index(i, j)] |
abstract LongIndexer |
get(long i,
long j,
long[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(i, j)] |
double |
getDouble(long... indices)
Calls
get(int...indices) and returns the value as a double. |
LongIndexer |
put(long[] indices,
long... l)
Returns
this where array/buffer[index(indices)] = l |
abstract LongIndexer |
put(long[] indices,
long l)
Returns
this where array/buffer[index(indices)] = l |
abstract LongIndexer |
put(long[] indices,
long[] l,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = l[offset:offset + length] |
LongIndexer |
put(long i,
long... l)
Returns
this where array/buffer[index(i)] = l |
abstract LongIndexer |
put(long i,
long l)
Returns
this where array/buffer[index(i)] = l |
abstract LongIndexer |
put(long i,
long[] l,
int offset,
int length)
Returns
this where array/buffer[index(i)] = l[offset:offset + length] |
LongIndexer |
put(long i,
long j,
long... l)
Returns
this where array/buffer[index(i, j)] = l |
abstract LongIndexer |
put(long i,
long j,
long l)
Returns
this where array/buffer[index(i, j)] = l |
abstract LongIndexer |
put(long i,
long j,
long[] l,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = l[offset:offset + length] |
abstract LongIndexer |
put(long i,
long j,
long k,
long l)
Returns
this where array/buffer[index(i, j, k)] = l |
LongIndexer |
putDouble(long[] indices,
double l)
Casts value to primitive type and calls
put(long[] indices, <type> value). |
public static final int VALUE_BYTES
protected LongIndexer(Index index)
protected LongIndexer(long[] sizes,
long[] strides)
public static LongIndexer create(long[] array)
new LongArrayIndexer(array)public static LongIndexer create(LongBuffer buffer)
new LongBufferIndexer(buffer)public static LongIndexer create(LongPointer pointer)
new LongRawIndexer(pointer)public static LongIndexer create(long[] array, Index index)
new LongArrayIndexer(array, index)public static LongIndexer create(LongBuffer buffer, Index index)
new LongBufferIndexer(buffer, index)public static LongIndexer create(LongPointer pointer, Index index)
new LongRawIndexer(pointer, index)public static LongIndexer create(long[] array, long... sizes)
new LongArrayIndexer(array, sizes)public static LongIndexer create(LongBuffer buffer, long... sizes)
new LongBufferIndexer(buffer, sizes)public static LongIndexer create(LongPointer pointer, long... sizes)
new LongRawIndexer(pointer, sizes)public static LongIndexer create(long[] array, long[] sizes, long[] strides)
new LongArrayIndexer(array, sizes, strides)public static LongIndexer create(LongBuffer buffer, long[] sizes, long[] strides)
new LongBufferIndexer(buffer, sizes, strides)public static LongIndexer create(LongPointer pointer, long[] sizes, long[] strides)
new LongRawIndexer(pointer, sizes, strides)public static LongIndexer create(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
create(pointer, Index.create(sizes, strides), direct)public static LongIndexer create(LongPointer pointer, Index index, boolean direct)
pointer - data to access via a buffer or to copy to an arrayindex - to usedirect - true to use a direct buffer, see Indexer for detailspublic abstract long get(long i)
array/buffer[index(i)]public LongIndexer get(long i, long[] l)
this where l = array/buffer[index(i)]public abstract LongIndexer get(long i, long[] l, int offset, int length)
this where l[offset:offset + length] = array/buffer[index(i)]public abstract long get(long i,
long j)
array/buffer[index(i, j)]public LongIndexer get(long i, long j, long[] l)
this where l = array/buffer[index(i, j)]public abstract LongIndexer get(long i, long j, long[] l, int offset, int length)
this where l[offset:offset + length] = array/buffer[index(i, j)]public abstract long get(long i,
long j,
long k)
array/buffer[index(i, j, k)]public abstract long get(long... indices)
array/buffer[index(indices)]public LongIndexer get(long[] indices, long[] l)
this where l = array/buffer[index(indices)]public abstract LongIndexer get(long[] indices, long[] l, int offset, int length)
this where l[offset:offset + length] = array/buffer[index(indices)]public abstract LongIndexer put(long i, long l)
this where array/buffer[index(i)] = lpublic LongIndexer put(long i, long... l)
this where array/buffer[index(i)] = lpublic abstract LongIndexer put(long i, long[] l, int offset, int length)
this where array/buffer[index(i)] = l[offset:offset + length]public abstract LongIndexer put(long i, long j, long l)
this where array/buffer[index(i, j)] = lpublic LongIndexer put(long i, long j, long... l)
this where array/buffer[index(i, j)] = lpublic abstract LongIndexer put(long i, long j, long[] l, int offset, int length)
this where array/buffer[index(i, j)] = l[offset:offset + length]public abstract LongIndexer put(long i, long j, long k, long l)
this where array/buffer[index(i, j, k)] = lpublic abstract LongIndexer put(long[] indices, long l)
this where array/buffer[index(indices)] = lpublic LongIndexer put(long[] indices, long... l)
this where array/buffer[index(indices)] = lpublic abstract LongIndexer put(long[] indices, long[] l, int offset, int length)
this where array/buffer[index(indices)] = l[offset:offset + length]public double getDouble(long... indices)
Indexerget(int...indices) and returns the value as a double.public LongIndexer putDouble(long[] indices, double l)
Indexerput(long[] indices, <type> value).Copyright © 2022. All rights reserved.