Package org.bytedeco.javacpp.indexer
Class FloatRawIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.FloatIndexer
-
- org.bytedeco.javacpp.indexer.FloatRawIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class FloatRawIndexer extends FloatIndexer
An indexer for aFloatPointerusing theRawinstance.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longbaseBase address and number of elements accessible.protected FloatPointerpointerThe backing pointer.protected static RawRAWThe instance for the raw memory interface.(package private) longsizeBase address and number of elements accessible.-
Fields inherited from class org.bytedeco.javacpp.indexer.FloatIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description FloatRawIndexer(FloatPointer pointer)CallsFloatRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).FloatRawIndexer(FloatPointer pointer, long... sizes)CallsFloatRawIndexer(pointer, Index.create(sizes)).FloatRawIndexer(FloatPointer pointer, long[] sizes, long[] strides)CallsFloatRawIndexer(pointer, Index.create(sizes, strides)).FloatRawIndexer(FloatPointer pointer, Index index)Constructor to set thepointerandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatget(long i)Returnsarray/buffer[index(i)]floatget(long... indices)Returnsarray/buffer[index(indices)]FloatIndexerget(long[] indices, float[] f, int offset, int length)Returnsthiswheref[offset:offset + length] = array/buffer[index(indices)]FloatIndexerget(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)]FloatIndexerget(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)]floatgetRaw(long i)Pointerpointer()Returns the backing pointer, ornullif noneFloatIndexerput(long[] indices, float f)Returnsthiswherearray/buffer[index(indices)] = fFloatIndexerput(long[] indices, float[] f, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = f[offset:offset + length]FloatIndexerput(long i, float f)Returnsthiswherearray/buffer[index(i)] = fFloatIndexerput(long i, float[] f, int offset, int length)Returnsthiswherearray/buffer[index(i)] = f[offset:offset + length]FloatIndexerput(long i, long j, float f)Returnsthiswherearray/buffer[index(i, j)] = fFloatIndexerput(long i, long j, float[] f, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = f[offset:offset + length]FloatIndexerput(long i, long j, long k, float f)Returnsthiswherearray/buffer[index(i, j, k)] = fFloatIndexerputRaw(long i, float f)FloatIndexerreindex(Index index)Returns 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 org.bytedeco.javacpp.indexer.FloatIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
-
-
-
Field Detail
-
RAW
protected static final Raw RAW
The instance for the raw memory interface.
-
pointer
protected FloatPointer pointer
The backing pointer.
-
base
final long base
Base address and number of elements accessible.
-
size
final long size
Base address and number of elements accessible.
-
-
Constructor Detail
-
FloatRawIndexer
public FloatRawIndexer(FloatPointer pointer)
CallsFloatRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
-
FloatRawIndexer
public FloatRawIndexer(FloatPointer pointer, long... sizes)
CallsFloatRawIndexer(pointer, Index.create(sizes)).
-
FloatRawIndexer
public FloatRawIndexer(FloatPointer pointer, long[] sizes, long[] strides)
CallsFloatRawIndexer(pointer, Index.create(sizes, strides)).
-
FloatRawIndexer
public FloatRawIndexer(FloatPointer pointer, Index index)
Constructor to set thepointerandIndexer.index.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:IndexerReturns the backing pointer, ornullif none
-
reindex
public FloatIndexer reindex(Index index)
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index.
-
getRaw
public float getRaw(long i)
-
get
public float get(long i)
Description copied from class:FloatIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classFloatIndexer
-
get
public FloatIndexer get(long i, float[] f, int offset, int length)
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
public FloatIndexer get(long i, long j, float[] f, int offset, int length)
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
public FloatIndexer get(long[] indices, float[] f, int offset, int length)
Description copied from class:FloatIndexerReturnsthiswheref[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classFloatIndexer
-
putRaw
public FloatIndexer putRaw(long i, float f)
-
put
public FloatIndexer put(long i, float f)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i)] = f- Specified by:
putin classFloatIndexer
-
put
public FloatIndexer put(long i, float[] f, int offset, int length)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i)] = f[offset:offset + length]- Specified by:
putin classFloatIndexer
-
put
public FloatIndexer put(long i, long j, float f)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i, j)] = f- Specified by:
putin classFloatIndexer
-
put
public FloatIndexer put(long i, long j, float[] f, int offset, int length)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i, j)] = f[offset:offset + length]- Specified by:
putin classFloatIndexer
-
put
public FloatIndexer put(long i, long j, long k, float f)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(i, j, k)] = f- Specified by:
putin classFloatIndexer
-
put
public FloatIndexer put(long[] indices, float f)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(indices)] = f- Specified by:
putin classFloatIndexer
-
put
public FloatIndexer put(long[] indices, float[] f, int offset, int length)
Description copied from class:FloatIndexerReturnsthiswherearray/buffer[index(indices)] = f[offset:offset + length]- Specified by:
putin classFloatIndexer
-
-