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, putDouble
public 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()
Indexer
null
if nonepublic FloatIndexer reindex(Index index)
Indexer
public float get(long i)
FloatIndexer
array/buffer[index(i)]
get
in class FloatIndexer
public FloatIndexer get(long i, float[] f, int offset, int length)
FloatIndexer
this
where f[offset:offset + length] = array/buffer[index(i)]
get
in class FloatIndexer
public float get(long i, long j)
FloatIndexer
array/buffer[index(i, j)]
get
in class FloatIndexer
public FloatIndexer get(long i, long j, float[] f, int offset, int length)
FloatIndexer
this
where f[offset:offset + length] = array/buffer[index(i, j)]
get
in class FloatIndexer
public float get(long i, long j, long k)
FloatIndexer
array/buffer[index(i, j, k)]
get
in class FloatIndexer
public float get(long... indices)
FloatIndexer
array/buffer[index(indices)]
get
in class FloatIndexer
public FloatIndexer get(long[] indices, float[] f, int offset, int length)
FloatIndexer
this
where f[offset:offset + length] = array/buffer[index(indices)]
get
in class FloatIndexer
public FloatIndexer put(long i, float f)
FloatIndexer
this
where array/buffer[index(i)] = f
put
in class FloatIndexer
public FloatIndexer put(long i, float[] f, int offset, int length)
FloatIndexer
this
where array/buffer[index(i)] = f[offset:offset + length]
put
in class FloatIndexer
public FloatIndexer put(long i, long j, float f)
FloatIndexer
this
where array/buffer[index(i, j)] = f
put
in class FloatIndexer
public FloatIndexer put(long i, long j, float[] f, int offset, int length)
FloatIndexer
this
where array/buffer[index(i, j)] = f[offset:offset + length]
put
in class FloatIndexer
public FloatIndexer put(long i, long j, long k, float f)
FloatIndexer
this
where array/buffer[index(i, j, k)] = f
put
in class FloatIndexer
public FloatIndexer put(long[] indices, float f)
FloatIndexer
this
where array/buffer[index(indices)] = f
put
in class FloatIndexer
public FloatIndexer put(long[] indices, float[] f, int offset, int length)
FloatIndexer
this
where array/buffer[index(indices)] = f[offset:offset + length]
put
in class FloatIndexer
Copyright © 2024. All rights reserved.