public class ShortArrayIndexer extends ShortIndexer
short[] array.| Modifier and Type | Field and Description |
|---|---|
protected short[] |
array
The backing array.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
ShortArrayIndexer(short[] array)
Calls
ShortArrayIndexer(array, { array.length }, { 1 }). |
ShortArrayIndexer(short[] array,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
short[] |
array()
Returns the backing array, or
null if none |
short |
get(long... indices)
Returns
array/buffer[index(indices)] |
short |
get(long i)
Returns
array/buffer[i] |
ShortIndexer |
get(long[] indices,
short[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[index(indices)] |
short |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
short |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
ShortIndexer |
get(long i,
long j,
short[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i * strides[0] + j] |
ShortIndexer |
get(long i,
short[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i] |
ShortIndexer |
put(long[] indices,
short s)
Returns
this where array/buffer[index(indices)] = s |
ShortIndexer |
put(long[] indices,
short[] s,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = s[offset:offset + length] |
ShortIndexer |
put(long i,
long j,
long k,
short s)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = s |
ShortIndexer |
put(long i,
long j,
short s)
Returns
this where array/buffer[i * strides[0] + j] = s |
ShortIndexer |
put(long i,
long j,
short[] s,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = s[offset:offset + length] |
ShortIndexer |
put(long i,
short s)
Returns
this where array/buffer[i] = s |
ShortIndexer |
put(long i,
short[] s,
int offset,
int length)
Returns
this where array/buffer[i] = s[offset:offset + length] |
void |
release()
Makes sure changes are reflected onto the backing memory and clears any references.
|
create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDoublepublic ShortArrayIndexer(short[] array)
ShortArrayIndexer(array, { array.length }, { 1 }).public ShortArrayIndexer(short[] array,
long[] sizes,
long[] strides)
public short[] array()
Indexernull if nonepublic short get(long i)
ShortIndexerarray/buffer[i]get in class ShortIndexerpublic ShortIndexer get(long i, short[] s, int offset, int length)
ShortIndexerthis where s[offset:offset + length] = array/buffer[i]get in class ShortIndexerpublic short get(long i,
long j)
ShortIndexerarray/buffer[i * strides[0] + j]get in class ShortIndexerpublic ShortIndexer get(long i, long j, short[] s, int offset, int length)
ShortIndexerthis where s[offset:offset + length] = array/buffer[i * strides[0] + j]get in class ShortIndexerpublic short get(long i,
long j,
long k)
ShortIndexerarray/buffer[i * strides[0] + j * strides[1] + k]get in class ShortIndexerpublic short get(long... indices)
ShortIndexerarray/buffer[index(indices)]get in class ShortIndexerpublic ShortIndexer get(long[] indices, short[] s, int offset, int length)
ShortIndexerthis where s[offset:offset + length] = array/buffer[index(indices)]get in class ShortIndexerpublic ShortIndexer put(long i, short s)
ShortIndexerthis where array/buffer[i] = sput in class ShortIndexerpublic ShortIndexer put(long i, short[] s, int offset, int length)
ShortIndexerthis where array/buffer[i] = s[offset:offset + length]put in class ShortIndexerpublic ShortIndexer put(long i, long j, short s)
ShortIndexerthis where array/buffer[i * strides[0] + j] = sput in class ShortIndexerpublic ShortIndexer put(long i, long j, short[] s, int offset, int length)
ShortIndexerthis where array/buffer[i * strides[0] + j] = s[offset:offset + length]put in class ShortIndexerpublic ShortIndexer put(long i, long j, long k, short s)
ShortIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = sput in class ShortIndexerpublic ShortIndexer put(long[] indices, short s)
ShortIndexerthis where array/buffer[index(indices)] = sput in class ShortIndexerpublic ShortIndexer put(long[] indices, short[] s, int offset, int length)
ShortIndexerthis where array/buffer[index(indices)] = s[offset:offset + length]put in class ShortIndexerCopyright © 2018. All rights reserved.