public class ShortBufferIndexer extends ShortIndexer
ShortBuffer.| Modifier and Type | Field and Description |
|---|---|
protected ShortBuffer |
buffer
The backing buffer.
|
| Constructor and Description |
|---|
ShortBufferIndexer(ShortBuffer buffer,
int[] sizes,
int[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer() |
short |
get(int... indices) |
short |
get(int i) |
ShortIndexer |
get(int[] indices,
short[] s,
int offset,
int length) |
short |
get(int i,
int j) |
short |
get(int i,
int j,
int k) |
ShortIndexer |
get(int i,
int j,
short[] s,
int offset,
int length) |
ShortIndexer |
get(int i,
short[] s,
int offset,
int length) |
ShortIndexer |
put(int[] indices,
short s) |
ShortIndexer |
put(int[] indices,
short[] s,
int offset,
int length) |
ShortIndexer |
put(int i,
int j,
int k,
short s) |
ShortIndexer |
put(int i,
int j,
short s) |
ShortIndexer |
put(int i,
int j,
short[] s,
int offset,
int length) |
ShortIndexer |
put(int i,
short s) |
ShortIndexer |
put(int i,
short[] s,
int offset,
int length) |
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, putDoubleprotected ShortBuffer buffer
public ShortBufferIndexer(ShortBuffer buffer, int[] sizes, int[] strides)
public Buffer buffer()
public short get(int i)
get in class ShortIndexerarray/buffer[i]public ShortIndexer get(int i, short[] s, int offset, int length)
get in class ShortIndexerthis where s[offset:offset + length] = array/buffer[i]public short get(int i,
int j)
get in class ShortIndexerarray/buffer[i * strides[0] + j]public ShortIndexer get(int i, int j, short[] s, int offset, int length)
get in class ShortIndexerthis where s[offset:offset + length] = array/buffer[i * strides[0] + j]public short get(int i,
int j,
int k)
get in class ShortIndexerarray/buffer[i * strides[0] + j * strides[1] + k]public short get(int... indices)
get in class ShortIndexerarray/buffer[index(indices)]public ShortIndexer get(int[] indices, short[] s, int offset, int length)
get in class ShortIndexerthis where s[offset:offset + length] = array/buffer[index(indices)]public ShortIndexer put(int i, short s)
put in class ShortIndexerthis where array/buffer[i] = spublic ShortIndexer put(int i, short[] s, int offset, int length)
put in class ShortIndexerthis where array/buffer[i] = s[offset:offset + length]public ShortIndexer put(int i, int j, short s)
put in class ShortIndexerthis where array/buffer[i * strides[0] + j] = spublic ShortIndexer put(int i, int j, short[] s, int offset, int length)
put in class ShortIndexerthis where array/buffer[i * strides[0] + j] = s[offset:offset + length]public ShortIndexer put(int i, int j, int k, short s)
put in class ShortIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = spublic ShortIndexer put(int[] indices, short s)
put in class ShortIndexerthis where array/buffer[index(indices)] = spublic ShortIndexer put(int[] indices, short[] s, int offset, int length)
put in class ShortIndexerthis where array/buffer[index(indices)] = s[offset:offset + length]Copyright © 2015. All Rights Reserved.