public class FloatArrayIndexer extends FloatIndexer
float[] array.| Modifier and Type | Field and Description |
|---|---|
protected float[] |
array
The backing array.
|
VALUE_BYTES| Constructor and Description |
|---|
FloatArrayIndexer(float[] array)
Calls
FloatArrayIndexer(array, Index.create(array.length)). |
FloatArrayIndexer(float[] array,
Index index)
Constructor to set the
array and Indexer.index. |
FloatArrayIndexer(float[] array,
long... sizes)
Calls
FloatArrayIndexer(array, Index.create(sizes)). |
FloatArrayIndexer(float[] array,
long[] sizes,
long[] strides)
Calls
FloatArrayIndexer(array, Index.create(sizes, 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[index(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[index(i)] |
float |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
FloatIndexer |
get(long i,
long j,
float[] f,
int offset,
int length)
Returns
this where f[offset:offset + length] = array/buffer[index(i, j)] |
float |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, 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[index(i)] = f |
FloatIndexer |
put(long i,
float[] f,
int offset,
int length)
Returns
this where array/buffer[index(i)] = f[offset:offset + length] |
FloatIndexer |
put(long i,
long j,
float f)
Returns
this where array/buffer[index(i, j)] = f |
FloatIndexer |
put(long i,
long j,
float[] f,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = f[offset:offset + length] |
FloatIndexer |
put(long i,
long j,
long k,
float f)
Returns
this where array/buffer[index(i, j, k)] = f |
FloatIndexer |
reindex(Index index)
Returns a new Indexer using the same data, but with a different Index.
|
void |
release()
Makes sure changes are reflected onto the backing memory and clears any references.
|
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDoublepublic FloatArrayIndexer(float[] array)
FloatArrayIndexer(array, Index.create(array.length)).public FloatArrayIndexer(float[] array,
long... sizes)
FloatArrayIndexer(array, Index.create(sizes)).public FloatArrayIndexer(float[] array,
long[] sizes,
long[] strides)
FloatArrayIndexer(array, Index.create(sizes, strides)).public FloatArrayIndexer(float[] array,
Index index)
array and Indexer.index.public float[] array()
Indexernull if nonepublic FloatIndexer reindex(Index index)
Indexerpublic float get(long i)
FloatIndexerarray/buffer[index(i)]get in class FloatIndexerpublic FloatIndexer get(long i, float[] f, int offset, int length)
FloatIndexerthis where f[offset:offset + length] = array/buffer[index(i)]get in class FloatIndexerpublic float get(long i,
long j)
FloatIndexerarray/buffer[index(i, 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[index(i, j)]get in class FloatIndexerpublic float get(long i,
long j,
long k)
FloatIndexerarray/buffer[index(i, j, 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[index(i)] = fput in class FloatIndexerpublic FloatIndexer put(long i, float[] f, int offset, int length)
FloatIndexerthis where array/buffer[index(i)] = f[offset:offset + length]put in class FloatIndexerpublic FloatIndexer put(long i, long j, float f)
FloatIndexerthis where array/buffer[index(i, j)] = fput in class FloatIndexerpublic FloatIndexer put(long i, long j, float[] f, int offset, int length)
FloatIndexerthis where array/buffer[index(i, j)] = f[offset:offset + length]put in class FloatIndexerpublic FloatIndexer put(long i, long j, long k, float f)
FloatIndexerthis where array/buffer[index(i, j, 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 © 2020. All rights reserved.