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) |
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] = c
public CharIndexer put(int i, char... c)
this
where array/buffer[i] = c
public 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] = c
public CharIndexer put(int i, int j, char... c)
this
where array/buffer[i * strides[0] + j] = c
public 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] = c
public abstract CharIndexer put(int[] indices, char c)
this
where array/buffer[index(indices)] = c
public CharIndexer put(int[] indices, char... c)
this
where array/buffer[index(indices)] = c
public abstract CharIndexer put(int[] indices, char[] c, int offset, int length)
this
where array/buffer[index(indices)] = c[offset:offset + length]
Copyright © 2015. All Rights Reserved.