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