public abstract class FloatIndexer extends Indexer
float primitive type.| Modifier and Type | Field and Description |
|---|---|
static int |
VALUE_BYTES
The number of bytes used to represent a float.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FloatIndexer(Index index) |
protected |
FloatIndexer(long[] sizes,
long[] strides) |
| Modifier and Type | Method and Description |
|---|---|
static FloatIndexer |
create(float[] array)
Returns
new FloatArrayIndexer(array) |
static FloatIndexer |
create(float[] array,
Index index)
Returns
new FloatArrayIndexer(array, index) |
static FloatIndexer |
create(float[] array,
long... sizes)
Returns
new FloatArrayIndexer(array, sizes) |
static FloatIndexer |
create(float[] array,
long[] sizes,
long[] strides)
Returns
new FloatArrayIndexer(array, sizes, strides) |
static FloatIndexer |
create(FloatBuffer buffer)
Returns
new FloatBufferIndexer(buffer) |
static FloatIndexer |
create(FloatBuffer buffer,
Index index)
Returns
new FloatBufferIndexer(buffer, index) |
static FloatIndexer |
create(FloatBuffer buffer,
long... sizes)
Returns
new FloatBufferIndexer(buffer, sizes) |
static FloatIndexer |
create(FloatBuffer buffer,
long[] sizes,
long[] strides)
Returns
new FloatBufferIndexer(buffer, sizes, strides) |
static FloatIndexer |
create(FloatPointer pointer)
Returns
new FloatRawIndexer(pointer) |
static FloatIndexer |
create(FloatPointer pointer,
Index index)
Returns
new FloatRawIndexer(pointer, index) |
static FloatIndexer |
create(FloatPointer pointer,
Index index,
boolean direct)
Creates a float indexer to access efficiently the data of a pointer.
|
static FloatIndexer |
create(FloatPointer pointer,
long... sizes)
Returns
new FloatRawIndexer(pointer, sizes) |
static FloatIndexer |
create(FloatPointer pointer,
long[] sizes,
long[] strides)
Returns
new FloatRawIndexer(pointer, sizes, strides) |
static FloatIndexer |
create(FloatPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Returns
create(pointer, Index.create(sizes, strides), direct) |
abstract float |
get(long... indices)
Returns
array/buffer[index(indices)] |
abstract float |
get(long i)
Returns
array/buffer[index(i)] |
FloatIndexer |
get(long[] indices,
float[] f)
Returns
this where f = array/buffer[index(indices)] |
abstract 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)
Returns
this where f = array/buffer[index(i)] |
abstract FloatIndexer |
get(long i,
float[] f,
int offset,
int length)
Returns
this where f[offset:offset + length] = array/buffer[index(i)] |
abstract float |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
FloatIndexer |
get(long i,
long j,
float[] f)
Returns
this where f = array/buffer[index(i, j)] |
abstract FloatIndexer |
get(long i,
long j,
float[] f,
int offset,
int length)
Returns
this where f[offset:offset + length] = array/buffer[index(i, j)] |
abstract float |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
double |
getDouble(long... indices)
Calls
get(int...indices) and returns the value as a double. |
FloatIndexer |
put(long[] indices,
float... f)
Returns
this where array/buffer[index(indices)] = f |
abstract FloatIndexer |
put(long[] indices,
float f)
Returns
this where array/buffer[index(indices)] = f |
abstract 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 |
abstract FloatIndexer |
put(long i,
float f)
Returns
this where array/buffer[index(i)] = f |
abstract 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 |
abstract FloatIndexer |
put(long i,
long j,
float f)
Returns
this where array/buffer[index(i, j)] = f |
abstract FloatIndexer |
put(long i,
long j,
float[] f,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = f[offset:offset + length] |
abstract FloatIndexer |
put(long i,
long j,
long k,
float f)
Returns
this where array/buffer[index(i, j, k)] = f |
FloatIndexer |
putDouble(long[] indices,
double f)
Casts value to primitive type and calls
put(long[] indices, <type> value). |
public static final int VALUE_BYTES
protected FloatIndexer(Index index)
protected FloatIndexer(long[] sizes,
long[] strides)
public static FloatIndexer create(float[] array)
new FloatArrayIndexer(array)public static FloatIndexer create(FloatBuffer buffer)
new FloatBufferIndexer(buffer)public static FloatIndexer create(FloatPointer pointer)
new FloatRawIndexer(pointer)public static FloatIndexer create(float[] array, Index index)
new FloatArrayIndexer(array, index)public static FloatIndexer create(FloatBuffer buffer, Index index)
new FloatBufferIndexer(buffer, index)public static FloatIndexer create(FloatPointer pointer, Index index)
new FloatRawIndexer(pointer, index)public static FloatIndexer create(float[] array, long... sizes)
new FloatArrayIndexer(array, sizes)public static FloatIndexer create(FloatBuffer buffer, long... sizes)
new FloatBufferIndexer(buffer, sizes)public static FloatIndexer create(FloatPointer pointer, long... sizes)
new FloatRawIndexer(pointer, sizes)public static FloatIndexer create(float[] array, long[] sizes, long[] strides)
new FloatArrayIndexer(array, sizes, strides)public static FloatIndexer create(FloatBuffer buffer, long[] sizes, long[] strides)
new FloatBufferIndexer(buffer, sizes, strides)public static FloatIndexer create(FloatPointer pointer, long[] sizes, long[] strides)
new FloatRawIndexer(pointer, sizes, strides)public static FloatIndexer create(FloatPointer pointer, long[] sizes, long[] strides, boolean direct)
create(pointer, Index.create(sizes, strides), direct)public static FloatIndexer create(FloatPointer pointer, Index index, boolean direct)
pointer - data to access via a buffer or to copy to an arrayindex - to usedirect - true to use a direct buffer, see Indexer for detailspublic abstract float get(long i)
array/buffer[index(i)]public FloatIndexer get(long i, float[] f)
this where f = array/buffer[index(i)]public abstract FloatIndexer get(long i, float[] f, int offset, int length)
this where f[offset:offset + length] = array/buffer[index(i)]public abstract float get(long i,
long j)
array/buffer[index(i, j)]public FloatIndexer get(long i, long j, float[] f)
this where f = array/buffer[index(i, j)]public abstract FloatIndexer get(long i, long j, float[] f, int offset, int length)
this where f[offset:offset + length] = array/buffer[index(i, j)]public abstract float get(long i,
long j,
long k)
array/buffer[index(i, j, k)]public abstract float get(long... indices)
array/buffer[index(indices)]public FloatIndexer get(long[] indices, float[] f)
this where f = array/buffer[index(indices)]public abstract FloatIndexer get(long[] indices, float[] f, int offset, int length)
this where f[offset:offset + length] = array/buffer[index(indices)]public abstract FloatIndexer put(long i, float f)
this where array/buffer[index(i)] = fpublic FloatIndexer put(long i, float... f)
this where array/buffer[index(i)] = fpublic abstract FloatIndexer put(long i, float[] f, int offset, int length)
this where array/buffer[index(i)] = f[offset:offset + length]public abstract FloatIndexer put(long i, long j, float f)
this where array/buffer[index(i, j)] = fpublic FloatIndexer put(long i, long j, float... f)
this where array/buffer[index(i, j)] = fpublic abstract FloatIndexer put(long i, long j, float[] f, int offset, int length)
this where array/buffer[index(i, j)] = f[offset:offset + length]public abstract FloatIndexer put(long i, long j, long k, float f)
this where array/buffer[index(i, j, k)] = fpublic abstract FloatIndexer put(long[] indices, float f)
this where array/buffer[index(indices)] = fpublic FloatIndexer put(long[] indices, float... f)
this where array/buffer[index(indices)] = fpublic abstract FloatIndexer put(long[] indices, float[] f, int offset, int length)
this where array/buffer[index(indices)] = f[offset:offset + length]public double getDouble(long... indices)
Indexerget(int...indices) and returns the value as a double.public FloatIndexer putDouble(long[] indices, double f)
Indexerput(long[] indices, <type> value).Copyright © 2020. All rights reserved.