public class ShortBufferIndexer extends ShortIndexer
ShortBuffer.| Modifier and Type | Field and Description |
|---|---|
protected ShortBuffer |
buffer
The backing buffer.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
ShortBufferIndexer(ShortBuffer buffer)
Calls
ShortBufferIndexer(buffer, { buffer.limit() }, { 1 }). |
ShortBufferIndexer(ShortBuffer buffer,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer()
Returns the backing buffer, 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, putDoubleprotected ShortBuffer buffer
public ShortBufferIndexer(ShortBuffer buffer)
ShortBufferIndexer(buffer, { buffer.limit() }, { 1 }).public ShortBufferIndexer(ShortBuffer buffer, long[] sizes, long[] strides)
public Buffer buffer()
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 © 2017. All rights reserved.