public class UShortArrayIndexer extends UShortIndexer
short[]
array, treated as unsigned.Modifier and Type | Field and Description |
---|---|
protected short[] |
array
The backing array.
|
VALUE_BYTES
indexable, ONE_STRIDE, sizes, strides
Constructor and Description |
---|
UShortArrayIndexer(short[] array)
Calls
UShortArrayIndexer(array, { array.length }, { 1 }) . |
UShortArrayIndexer(short[] array,
long... sizes)
Calls
UShortArrayIndexer(array, sizes, strides(sizes)) . |
UShortArrayIndexer(short[] array,
long[] sizes,
long[] strides)
|
Modifier and Type | Method and Description |
---|---|
short[] |
array()
Returns the backing array, or
null if none |
int |
get(long... indices)
Returns
array/buffer[index(indices)] |
int |
get(long i)
Returns
array/buffer[i] |
UShortIndexer |
get(long[] indices,
int[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[index(indices)] |
UShortIndexer |
get(long i,
int[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i] |
int |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
UShortIndexer |
get(long i,
long j,
int[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i * strides[0] + j] |
int |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
UShortIndexer |
put(long[] indices,
int s)
Returns
this where array/buffer[index(indices)] = s |
UShortIndexer |
put(long[] indices,
int[] s,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = s[offset:offset + length] |
UShortIndexer |
put(long i,
int s)
Returns
this where array/buffer[i] = s |
UShortIndexer |
put(long i,
int[] s,
int offset,
int length)
Returns
this where array/buffer[i] = s[offset:offset + length] |
UShortIndexer |
put(long i,
long j,
int s)
Returns
this where array/buffer[i * strides[0] + j] = s |
UShortIndexer |
put(long i,
long j,
int[] s,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = s[offset:offset + length] |
UShortIndexer |
put(long i,
long j,
long k,
int s)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = s |
void |
release()
Makes sure changes are reflected onto the backing memory and clears any references.
|
create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
public UShortArrayIndexer(short[] array)
UShortArrayIndexer(array, { array.length }, { 1 })
.public UShortArrayIndexer(short[] array, long... sizes)
UShortArrayIndexer(array, sizes, strides(sizes))
.public UShortArrayIndexer(short[] array, long[] sizes, long[] strides)
public short[] array()
Indexer
null
if nonepublic int get(long i)
UShortIndexer
array/buffer[i]
get
in class UShortIndexer
public UShortIndexer get(long i, int[] s, int offset, int length)
UShortIndexer
this
where s[offset:offset + length] = array/buffer[i]
get
in class UShortIndexer
public int get(long i, long j)
UShortIndexer
array/buffer[i * strides[0] + j]
get
in class UShortIndexer
public UShortIndexer get(long i, long j, int[] s, int offset, int length)
UShortIndexer
this
where s[offset:offset + length] = array/buffer[i * strides[0] + j]
get
in class UShortIndexer
public int get(long i, long j, long k)
UShortIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
get
in class UShortIndexer
public int get(long... indices)
UShortIndexer
array/buffer[index(indices)]
get
in class UShortIndexer
public UShortIndexer get(long[] indices, int[] s, int offset, int length)
UShortIndexer
this
where s[offset:offset + length] = array/buffer[index(indices)]
get
in class UShortIndexer
public UShortIndexer put(long i, int s)
UShortIndexer
this
where array/buffer[i] = s
put
in class UShortIndexer
public UShortIndexer put(long i, int[] s, int offset, int length)
UShortIndexer
this
where array/buffer[i] = s[offset:offset + length]
put
in class UShortIndexer
public UShortIndexer put(long i, long j, int s)
UShortIndexer
this
where array/buffer[i * strides[0] + j] = s
put
in class UShortIndexer
public UShortIndexer put(long i, long j, int[] s, int offset, int length)
UShortIndexer
this
where array/buffer[i * strides[0] + j] = s[offset:offset + length]
put
in class UShortIndexer
public UShortIndexer put(long i, long j, long k, int s)
UShortIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = s
put
in class UShortIndexer
public UShortIndexer put(long[] indices, int s)
UShortIndexer
this
where array/buffer[index(indices)] = s
put
in class UShortIndexer
public UShortIndexer put(long[] indices, int[] s, int offset, int length)
UShortIndexer
this
where array/buffer[index(indices)] = s[offset:offset + length]
put
in class UShortIndexer
Copyright © 2020. All rights reserved.