public abstract class LongIndexer extends Indexer
long
primitive type.Modifier | Constructor and Description |
---|---|
protected |
LongIndexer(int[] sizes,
int[] strides) |
Modifier and Type | Method and Description |
---|---|
static LongIndexer |
create(long[] array,
int[] sizes,
int[] strides) |
static LongIndexer |
create(LongBuffer buffer,
int[] sizes,
int[] strides) |
static LongIndexer |
create(LongPointer pointer,
int[] sizes,
int[] strides) |
static LongIndexer |
create(LongPointer pointer,
int[] sizes,
int[] strides,
boolean direct)
Creates a long indexer to access efficiently the data of a pointer.
|
abstract long |
get(int... indices) |
abstract long |
get(int i) |
LongIndexer |
get(int[] indices,
long[] l) |
abstract LongIndexer |
get(int[] indices,
long[] l,
int offset,
int length) |
abstract long |
get(int i,
int j) |
abstract long |
get(int i,
int j,
int k) |
LongIndexer |
get(int i,
int j,
long[] l) |
abstract LongIndexer |
get(int i,
int j,
long[] l,
int offset,
int length) |
LongIndexer |
get(int i,
long[] l) |
abstract LongIndexer |
get(int i,
long[] l,
int offset,
int length) |
double |
getDouble(int... indices)
Calls
get(int...indices) and returns the value as a double. |
LongIndexer |
put(int[] indices,
long... l) |
abstract LongIndexer |
put(int[] indices,
long l) |
abstract LongIndexer |
put(int[] indices,
long[] l,
int offset,
int length) |
abstract LongIndexer |
put(int i,
int j,
int k,
long l) |
LongIndexer |
put(int i,
int j,
long... l) |
abstract LongIndexer |
put(int i,
int j,
long l) |
abstract LongIndexer |
put(int i,
int j,
long[] l,
int offset,
int length) |
LongIndexer |
put(int i,
long... l) |
abstract LongIndexer |
put(int i,
long l) |
abstract LongIndexer |
put(int i,
long[] l,
int offset,
int length) |
public static LongIndexer create(long[] array, int[] sizes, int[] strides)
new LongArrayIndexer(array, sizes, strides)
public static LongIndexer create(LongBuffer buffer, int[] sizes, int[] strides)
new LongBufferIndexer(buffer, sizes, strides)
public static LongIndexer create(LongPointer pointer, int[] sizes, int[] strides)
create(pointer, sizes, strides, true)
public static LongIndexer create(LongPointer pointer, int[] sizes, int[] 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 abstract long get(int i)
array/buffer[i]
public LongIndexer get(int i, long[] l)
this
where l = array/buffer[i]
public abstract LongIndexer get(int i, long[] l, int offset, int length)
this
where l[offset:offset + length] = array/buffer[i]
public abstract long get(int i, int j)
array/buffer[i * strides[0] + j]
public LongIndexer get(int i, int j, long[] l)
this
where l = array/buffer[i * strides[0] + j]
public abstract LongIndexer get(int i, int j, long[] l, int offset, int length)
this
where l[offset:offset + length] = array/buffer[i * strides[0] + j]
public abstract long get(int i, int j, int k)
array/buffer[i * strides[0] + j * strides[1] + k]
public abstract long get(int... indices)
array/buffer[index(indices)]
public LongIndexer get(int[] indices, long[] l)
this
where l = array/buffer[index(indices)]
public abstract LongIndexer get(int[] indices, long[] l, int offset, int length)
this
where l[offset:offset + length] = array/buffer[index(indices)]
public abstract LongIndexer put(int i, long l)
this
where array/buffer[i] = l
public LongIndexer put(int i, long... l)
this
where array/buffer[i] = l
public abstract LongIndexer put(int i, long[] l, int offset, int length)
this
where array/buffer[i] = l[offset:offset + length]
public abstract LongIndexer put(int i, int j, long l)
this
where array/buffer[i * strides[0] + j] = l
public LongIndexer put(int i, int j, long... l)
this
where array/buffer[i * strides[0] + j] = l
public abstract LongIndexer put(int i, int j, long[] l, int offset, int length)
this
where array/buffer[i * strides[0] + j] = l[offset:offset + length]
public abstract LongIndexer put(int i, int j, int k, long l)
this
where array/buffer[i * strides[0] + j * strides[1] + k] = l
public abstract LongIndexer put(int[] indices, long l)
this
where array/buffer[index(indices)] = l
public LongIndexer put(int[] indices, long... l)
this
where array/buffer[index(indices)] = l
public abstract LongIndexer put(int[] indices, long[] l, int offset, int length)
this
where array/buffer[index(indices)] = l[offset:offset + length]
Copyright © 2015. All Rights Reserved.