public class FloatBufferIndexer extends FloatIndexer
FloatBuffer
.Modifier and Type | Field and Description |
---|---|
protected FloatBuffer |
buffer
The backing buffer.
|
Constructor and Description |
---|
FloatBufferIndexer(FloatBuffer buffer,
int[] sizes,
int[] strides)
|
Modifier and Type | Method and Description |
---|---|
Buffer |
buffer() |
float |
get(int... indices) |
float |
get(int i) |
FloatIndexer |
get(int[] indices,
float[] f,
int offset,
int length) |
FloatIndexer |
get(int i,
float[] f,
int offset,
int length) |
float |
get(int i,
int j) |
FloatIndexer |
get(int i,
int j,
float[] f,
int offset,
int length) |
float |
get(int i,
int j,
int k) |
FloatIndexer |
put(int[] indices,
float f) |
FloatIndexer |
put(int[] indices,
float[] f,
int offset,
int length) |
FloatIndexer |
put(int i,
float f) |
FloatIndexer |
put(int i,
float[] f,
int offset,
int length) |
FloatIndexer |
put(int i,
int j,
float f) |
FloatIndexer |
put(int i,
int j,
float[] f,
int offset,
int length) |
FloatIndexer |
put(int i,
int j,
int k,
float f) |
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
protected FloatBuffer buffer
public FloatBufferIndexer(FloatBuffer buffer, int[] sizes, int[] strides)
public Buffer buffer()
public float get(int i)
get
in class FloatIndexer
array/buffer[i]
public FloatIndexer get(int i, float[] f, int offset, int length)
get
in class FloatIndexer
this
where f[offset:offset + length] = array/buffer[i]
public float get(int i, int j)
get
in class FloatIndexer
array/buffer[i * strides[0] + j]
public FloatIndexer get(int i, int j, float[] f, int offset, int length)
get
in class FloatIndexer
this
where f[offset:offset + length] = array/buffer[i * strides[0] + j]
public float get(int i, int j, int k)
get
in class FloatIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
public float get(int... indices)
get
in class FloatIndexer
array/buffer[index(indices)]
public FloatIndexer get(int[] indices, float[] f, int offset, int length)
get
in class FloatIndexer
this
where f[offset:offset + length] = array/buffer[index(indices)]
public FloatIndexer put(int i, float f)
put
in class FloatIndexer
this
where array/buffer[i] = f
public FloatIndexer put(int i, float[] f, int offset, int length)
put
in class FloatIndexer
this
where array/buffer[i] = f[offset:offset + length]
public FloatIndexer put(int i, int j, float f)
put
in class FloatIndexer
this
where array/buffer[i * strides[0] + j] = f
public FloatIndexer put(int i, int j, float[] f, int offset, int length)
put
in class FloatIndexer
this
where array/buffer[i * strides[0] + j] = f[offset:offset + length]
public FloatIndexer put(int i, int j, int k, float f)
put
in class FloatIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = f
public FloatIndexer put(int[] indices, float f)
put
in class FloatIndexer
this
where array/buffer[index(indices)] = f
public FloatIndexer put(int[] indices, float[] f, int offset, int length)
put
in class FloatIndexer
this
where array/buffer[index(indices)] = f[offset:offset + length]
Copyright © 2014. All Rights Reserved.