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