public class FloatArrayIndexer extends FloatIndexer
float[] array.| Modifier and Type | Field and Description |
|---|---|
protected float[] |
array
The backing array.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
FloatArrayIndexer(float[] array)
Calls
FloatArrayIndexer(array, { array.length }, { 1 }). |
FloatArrayIndexer(float[] array,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
array()
Returns the backing array, 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, putDoublepublic FloatArrayIndexer(float[] array)
FloatArrayIndexer(array, { array.length }, { 1 }).public FloatArrayIndexer(float[] array,
long[] sizes,
long[] strides)
public float[] array()
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.