public class UShortArrayIndexer extends UShortIndexer
short[]
array, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected short[] |
array
The backing array.
|
Constructor and Description |
---|
UShortArrayIndexer(short[] array,
int[] sizes,
int[] strides)
|
Modifier and Type | Method and Description |
---|---|
short[] |
array() |
int |
get(int... indices) |
int |
get(int i) |
UShortIndexer |
get(int[] indices,
int[] s,
int offset,
int length) |
int |
get(int i,
int j) |
UShortIndexer |
get(int i,
int[] s,
int offset,
int length) |
int |
get(int i,
int j,
int k) |
UShortIndexer |
get(int i,
int j,
int[] s,
int offset,
int length) |
UShortIndexer |
put(int[] indices,
int s) |
UShortIndexer |
put(int[] indices,
int[] s,
int offset,
int length) |
UShortIndexer |
put(int i,
int s) |
UShortIndexer |
put(int i,
int[] s,
int offset,
int length) |
UShortIndexer |
put(int i,
int j,
int s) |
UShortIndexer |
put(int i,
int j,
int[] s,
int offset,
int length) |
UShortIndexer |
put(int i,
int j,
int k,
int s) |
void |
release()
Makes sure changes are reflected onto the backing memory and releases any references.
|
create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
public UShortArrayIndexer(short[] array, int[] sizes, int[] strides)
public short[] array()
public int get(int i)
get
in class UShortIndexer
array/buffer[i]
public UShortIndexer get(int i, int[] s, int offset, int length)
get
in class UShortIndexer
this
where s[offset:offset + length] = array/buffer[i]
public int get(int i, int j)
get
in class UShortIndexer
array/buffer[i * strides[0] + j]
public UShortIndexer get(int i, int j, int[] s, int offset, int length)
get
in class UShortIndexer
this
where s[offset:offset + length] = array/buffer[i * strides[0] + j]
public int get(int i, int j, int k)
get
in class UShortIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
public int get(int... indices)
get
in class UShortIndexer
array/buffer[index(indices)]
public UShortIndexer get(int[] indices, int[] s, int offset, int length)
get
in class UShortIndexer
this
where s[offset:offset + length] = array/buffer[index(indices)]
public UShortIndexer put(int i, int s)
put
in class UShortIndexer
this
where array/buffer[i] = s
public UShortIndexer put(int i, int[] s, int offset, int length)
put
in class UShortIndexer
this
where array/buffer[i] = s[offset:offset + length]
public UShortIndexer put(int i, int j, int s)
put
in class UShortIndexer
this
where array/buffer[i * strides[0] + j] = s
public UShortIndexer put(int i, int j, int[] s, int offset, int length)
put
in class UShortIndexer
this
where array/buffer[i * strides[0] + j] = s[offset:offset + length]
public UShortIndexer put(int i, int j, int k, int s)
put
in class UShortIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = s
public UShortIndexer put(int[] indices, int s)
put
in class UShortIndexer
this
where array/buffer[index(indices)] = s
public UShortIndexer put(int[] indices, int[] s, int offset, int length)
put
in class UShortIndexer
this
where array/buffer[index(indices)] = s[offset:offset + length]
Copyright © 2015. All Rights Reserved.