public class FloatBufferIndexer extends FloatIndexer
FloatBuffer.| Modifier and Type | Field and Description |
|---|---|
protected FloatBuffer |
buffer
The backing buffer.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
FloatBufferIndexer(FloatBuffer buffer)
Calls
FloatBufferIndexer(buffer, { buffer.limit() }, { 1 }). |
FloatBufferIndexer(FloatBuffer buffer,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer()
Returns the backing buffer, or
null if none |
float |
get(long... indices)
Returns
array/buffer[index(indices)] |
float |
get(long i)
Returns
array/buffer[i] |
FloatIndexer |
get(long[] indices,
float[] f,
int offset,
int length)
Returns
this where f[offset:offset + length] = array/buffer[index(indices)] |
FloatIndexer |
get(long i,
float[] f,
int offset,
int length)
Returns
this where f[offset:offset + length] = array/buffer[i] |
float |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
FloatIndexer |
get(long i,
long j,
float[] f,
int offset,
int length)
Returns
this where f[offset:offset + length] = array/buffer[i * strides[0] + j] |
float |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
FloatIndexer |
put(long[] indices,
float f)
Returns
this where array/buffer[index(indices)] = f |
FloatIndexer |
put(long[] indices,
float[] f,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = f[offset:offset + length] |
FloatIndexer |
put(long i,
float f)
Returns
this where array/buffer[i] = f |
FloatIndexer |
put(long i,
float[] f,
int offset,
int length)
Returns
this where array/buffer[i] = f[offset:offset + length] |
FloatIndexer |
put(long i,
long j,
float f)
Returns
this where array/buffer[i * strides[0] + j] = f |
FloatIndexer |
put(long i,
long j,
float[] f,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = f[offset:offset + length] |
FloatIndexer |
put(long i,
long j,
long k,
float f)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = f |
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 FloatBuffer buffer
public FloatBufferIndexer(FloatBuffer buffer)
FloatBufferIndexer(buffer, { buffer.limit() }, { 1 }).public FloatBufferIndexer(FloatBuffer buffer, long[] sizes, long[] strides)
public Buffer buffer()
Indexernull if nonepublic float get(long i)
FloatIndexerarray/buffer[i]get in class FloatIndexerpublic FloatIndexer get(long i, float[] f, int offset, int length)
FloatIndexerthis where f[offset:offset + length] = array/buffer[i]get in class FloatIndexerpublic float get(long i,
long j)
FloatIndexerarray/buffer[i * strides[0] + j]get in class FloatIndexerpublic FloatIndexer get(long i, long j, float[] f, int offset, int length)
FloatIndexerthis where f[offset:offset + length] = array/buffer[i * strides[0] + j]get in class FloatIndexerpublic float get(long i,
long j,
long k)
FloatIndexerarray/buffer[i * strides[0] + j * strides[1] + k]get in class FloatIndexerpublic float get(long... indices)
FloatIndexerarray/buffer[index(indices)]get in class FloatIndexerpublic FloatIndexer get(long[] indices, float[] f, int offset, int length)
FloatIndexerthis where f[offset:offset + length] = array/buffer[index(indices)]get in class FloatIndexerpublic FloatIndexer put(long i, float f)
FloatIndexerthis where array/buffer[i] = fput in class FloatIndexerpublic FloatIndexer put(long i, float[] f, int offset, int length)
FloatIndexerthis where array/buffer[i] = f[offset:offset + length]put in class FloatIndexerpublic FloatIndexer put(long i, long j, float f)
FloatIndexerthis where array/buffer[i * strides[0] + j] = fput in class FloatIndexerpublic FloatIndexer put(long i, long j, float[] f, int offset, int length)
FloatIndexerthis where array/buffer[i * strides[0] + j] = f[offset:offset + length]put in class FloatIndexerpublic FloatIndexer put(long i, long j, long k, float f)
FloatIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = fput in class FloatIndexerpublic FloatIndexer put(long[] indices, float f)
FloatIndexerthis where array/buffer[index(indices)] = fput in class FloatIndexerpublic FloatIndexer put(long[] indices, float[] f, int offset, int length)
FloatIndexerthis where array/buffer[index(indices)] = f[offset:offset + length]put in class FloatIndexerCopyright © 2018. All rights reserved.