public class FloatRawIndexer extends FloatIndexer
FloatPointer using the Raw instance.| Modifier and Type | Field and Description |
|---|---|
(package private) long |
base
Base address and number of elements accessible.
|
protected FloatPointer |
pointer
The backing pointer.
|
protected static Raw |
RAW
The instance for the raw memory interface.
|
(package private) long |
size
Base address and number of elements accessible.
|
VALUE_BYTES| Constructor and Description |
|---|
FloatRawIndexer(FloatPointer pointer)
Calls
FloatRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())). |
FloatRawIndexer(FloatPointer pointer,
Index index)
Constructor to set the
pointer and Indexer.index. |
FloatRawIndexer(FloatPointer pointer,
long... sizes)
Calls
FloatRawIndexer(pointer, Index.create(sizes)). |
FloatRawIndexer(FloatPointer pointer,
long[] sizes,
long[] strides)
Calls
FloatRawIndexer(pointer, Index.create(sizes, strides)). |
| Modifier and Type | Method and Description |
|---|---|
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)] |
float |
getRaw(long i) |
Pointer |
pointer()
Returns the backing pointer, or
null if none |
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 |
putRaw(long i,
float 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, putDoubleprotected static final Raw RAW
protected FloatPointer pointer
final long base
final long size
public FloatRawIndexer(FloatPointer pointer)
FloatRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).public FloatRawIndexer(FloatPointer pointer, long... sizes)
FloatRawIndexer(pointer, Index.create(sizes)).public FloatRawIndexer(FloatPointer pointer, long[] sizes, long[] strides)
FloatRawIndexer(pointer, Index.create(sizes, strides)).public FloatRawIndexer(FloatPointer pointer, Index index)
pointer and Indexer.index.public Pointer pointer()
Indexernull if nonepublic FloatIndexer reindex(Index index)
Indexerpublic float getRaw(long i)
public 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 putRaw(long i, float f)
public 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 © 2023. All rights reserved.