Class FloatArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.FloatIndexer
org.bytedeco.javacpp.indexer.FloatArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
float[] array.-
Field Summary
FieldsFields inherited from class FloatIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionFloatArrayIndexer(float[] array) CallsFloatArrayIndexer(array, Index.create(array.length)).FloatArrayIndexer(float[] array, long... sizes) CallsFloatArrayIndexer(array, Index.create(sizes)).FloatArrayIndexer(float[] array, long[] sizes, long[] strides) CallsFloatArrayIndexer(array, Index.create(sizes, strides)).FloatArrayIndexer(float[] array, Index index) Constructor to set thearrayandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]array()Returns the backing array, ornullif nonefloatget(long i) Returnsarray/buffer[index(i)]floatget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, float[] f, int offset, int length) Returnsthiswheref[offset:offset + length] = array/buffer[index(indices)]get(long i, float[] f, int offset, int length) Returnsthiswheref[offset:offset + length] = array/buffer[index(i)]floatget(long i, long j) Returnsarray/buffer[index(i, j)]get(long i, long j, float[] f, int offset, int length) Returnsthiswheref[offset:offset + length] = array/buffer[index(i, j)]floatget(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]put(long[] indices, float f) Returnsthiswherearray/buffer[index(indices)] = fput(long[] indices, float[] f, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = f[offset:offset + length]put(long i, float f) Returnsthiswherearray/buffer[index(i)] = fput(long i, float[] f, int offset, int length) Returnsthiswherearray/buffer[index(i)] = f[offset:offset + length]put(long i, long j, float f) Returnsthiswherearray/buffer[index(i, j)] = fput(long i, long j, float[] f, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = f[offset:offset + length]put(long i, long j, long k, float f) Returnsthiswherearray/buffer[index(i, j, k)] = fReturns a new Indexer using the same data, but with a different Index.voidrelease()Makes sure changes are reflected onto the backing memory and clears any references.Methods inherited from class FloatIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
Field Details
-
array
protected float[] arrayThe backing array.
-
-
Constructor Details
-
FloatArrayIndexer
public FloatArrayIndexer(float[] array) CallsFloatArrayIndexer(array, Index.create(array.length)). -
FloatArrayIndexer
public FloatArrayIndexer(float[] array, long... sizes) CallsFloatArrayIndexer(array, Index.create(sizes)). -
FloatArrayIndexer
public FloatArrayIndexer(float[] array, long[] sizes, long[] strides) CallsFloatArrayIndexer(array, Index.create(sizes, strides)). -
FloatArrayIndexer
Constructor to set thearrayandIndexer.index.
-
-
Method Details
-
array
-
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
get
public float get(long i) Description copied from class:FloatIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classFloatIndexer
-
get
Description copied from class:FloatIndexerReturnsthiswheref[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classFloatIndexer
-
get
public float get(long i, long j) Description copied from class:FloatIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classFloatIndexer
-
get
Description copied from class:FloatIndexerReturnsthiswheref[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classFloatIndexer
-
get
public float get(long i, long j, long k) Description copied from class:FloatIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classFloatIndexer
-
get
public float get(long... indices) Description copied from class:FloatIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classFloatIndexer
-
get
Description copied from class:FloatIndexerReturnsthiswheref[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i)] = f- Specified by:
putin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i)] = f[offset:offset + length]- Specified by:
putin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i, j)] = f- Specified by:
putin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i, j)] = f[offset:offset + length]- Specified by:
putin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i, j, k)] = f- Specified by:
putin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(indices)] = f- Specified by:
putin classFloatIndexer
-
put
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(indices)] = f[offset:offset + length]- Specified by:
putin classFloatIndexer
-
release
-