public abstract class FloatIndexer extends Indexer
float
primitive type.Modifier | Constructor and Description |
---|---|
protected |
FloatIndexer(int[] sizes,
int[] strides) |
Modifier and Type | Method and Description |
---|---|
static FloatIndexer |
create(float[] array,
int[] sizes,
int[] strides) |
static FloatIndexer |
create(FloatBuffer buffer,
int[] sizes,
int[] strides) |
static FloatIndexer |
create(FloatPointer pointer,
int[] sizes,
int[] strides) |
static FloatIndexer |
create(FloatPointer pointer,
int[] sizes,
int[] strides,
boolean direct)
Creates a float indexer to access efficiently the data of a pointer.
|
abstract float |
get(int... indices) |
abstract float |
get(int i) |
FloatIndexer |
get(int[] indices,
float[] f) |
abstract FloatIndexer |
get(int[] indices,
float[] f,
int offset,
int length) |
FloatIndexer |
get(int i,
float[] f) |
abstract FloatIndexer |
get(int i,
float[] f,
int offset,
int length) |
abstract float |
get(int i,
int j) |
FloatIndexer |
get(int i,
int j,
float[] f) |
abstract FloatIndexer |
get(int i,
int j,
float[] f,
int offset,
int length) |
abstract float |
get(int i,
int j,
int k) |
double |
getDouble(int... indices)
Calls
get(int...indices) and returns the value as a double. |
FloatIndexer |
put(int[] indices,
float... f) |
abstract FloatIndexer |
put(int[] indices,
float f) |
abstract FloatIndexer |
put(int[] indices,
float[] f,
int offset,
int length) |
FloatIndexer |
put(int i,
float... f) |
abstract FloatIndexer |
put(int i,
float f) |
abstract FloatIndexer |
put(int i,
float[] f,
int offset,
int length) |
FloatIndexer |
put(int i,
int j,
float... f) |
abstract FloatIndexer |
put(int i,
int j,
float f) |
abstract FloatIndexer |
put(int i,
int j,
float[] f,
int offset,
int length) |
abstract FloatIndexer |
put(int i,
int j,
int k,
float f) |
public static FloatIndexer create(float[] array, int[] sizes, int[] strides)
new FloatArrayIndexer(array, sizes, strides)
public static FloatIndexer create(FloatBuffer buffer, int[] sizes, int[] strides)
new FloatBufferIndexer(buffer, sizes, strides)
public static FloatIndexer create(FloatPointer pointer, int[] sizes, int[] strides)
create(pointer, sizes, strides, true)
public static FloatIndexer create(FloatPointer pointer, int[] sizes, int[] strides, boolean direct)
pointer
- data to access via a buffer or to copy to an arraydirect
- true
to use a direct buffer, see Indexer
for detailspublic abstract float get(int i)
array/buffer[i]
public FloatIndexer get(int i, float[] f)
this
where f = array/buffer[i]
public abstract FloatIndexer get(int i, float[] f, int offset, int length)
this
where f[offset:offset + length] = array/buffer[i]
public abstract float get(int i, int j)
array/buffer[i * strides[0] + j]
public FloatIndexer get(int i, int j, float[] f)
this
where f = array/buffer[i * strides[0] + j]
public abstract FloatIndexer get(int i, int j, float[] f, int offset, int length)
this
where f[offset:offset + length] = array/buffer[i * strides[0] + j]
public abstract float get(int i, int j, int k)
array/buffer[i * strides[0] + j * strides[1] + k]
public abstract float get(int... indices)
array/buffer[index(indices)]
public FloatIndexer get(int[] indices, float[] f)
this
where f = array/buffer[index(indices)]
public abstract FloatIndexer get(int[] indices, float[] f, int offset, int length)
this
where f[offset:offset + length] = array/buffer[index(indices)]
public abstract FloatIndexer put(int i, float f)
this
where array/buffer[i] = f
public FloatIndexer put(int i, float... f)
this
where array/buffer[i] = f
public abstract FloatIndexer put(int i, float[] f, int offset, int length)
this
where array/buffer[i] = f[offset:offset + length]
public abstract FloatIndexer put(int i, int j, float f)
this
where array/buffer[i * strides[0] + j] = f
public FloatIndexer put(int i, int j, float... f)
this
where array/buffer[i * strides[0] + j] = f
public abstract FloatIndexer put(int i, int j, float[] f, int offset, int length)
this
where array/buffer[i * strides[0] + j] = f[offset:offset + length]
public abstract FloatIndexer put(int i, int j, int k, float f)
this
where array/buffer[i * strides[0] + j * strides[1] + k] = f
public abstract FloatIndexer put(int[] indices, float f)
this
where array/buffer[index(indices)] = f
public FloatIndexer put(int[] indices, float... f)
this
where array/buffer[index(indices)] = f
public abstract FloatIndexer put(int[] indices, float[] f, int offset, int length)
this
where array/buffer[index(indices)] = f[offset:offset + length]
Copyright © 2015. All Rights Reserved.