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