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