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