public abstract class DoubleIndexer extends Indexer
double primitive type.| Modifier | Constructor and Description |
|---|---|
protected |
DoubleIndexer(int[] sizes,
int[] strides) |
| Modifier and Type | Method and Description |
|---|---|
static DoubleIndexer |
create(double[] array,
int[] sizes,
int[] strides) |
static DoubleIndexer |
create(DoubleBuffer buffer,
int[] sizes,
int[] strides) |
static DoubleIndexer |
create(DoublePointer pointer,
int[] sizes,
int[] strides) |
static DoubleIndexer |
create(DoublePointer pointer,
int[] sizes,
int[] strides,
boolean direct)
Creates a double indexer to access efficiently the data of a pointer.
|
abstract double |
get(int... indices) |
abstract double |
get(int i) |
DoubleIndexer |
get(int[] indices,
double[] d) |
abstract DoubleIndexer |
get(int[] indices,
double[] d,
int offset,
int length) |
DoubleIndexer |
get(int i,
double[] d) |
abstract DoubleIndexer |
get(int i,
double[] d,
int offset,
int length) |
abstract double |
get(int i,
int j) |
DoubleIndexer |
get(int i,
int j,
double[] d) |
abstract DoubleIndexer |
get(int i,
int j,
double[] d,
int offset,
int length) |
abstract double |
get(int i,
int j,
int k) |
double |
getDouble(int... indices)
Calls
get(int...indices) and returns the value as a double. |
DoubleIndexer |
put(int[] indices,
double... d) |
abstract DoubleIndexer |
put(int[] indices,
double d) |
abstract DoubleIndexer |
put(int[] indices,
double[] d,
int offset,
int length) |
DoubleIndexer |
put(int i,
double... d) |
abstract DoubleIndexer |
put(int i,
double d) |
abstract DoubleIndexer |
put(int i,
double[] d,
int offset,
int length) |
DoubleIndexer |
put(int i,
int j,
double... d) |
abstract DoubleIndexer |
put(int i,
int j,
double d) |
abstract DoubleIndexer |
put(int i,
int j,
double[] d,
int offset,
int length) |
abstract DoubleIndexer |
put(int i,
int j,
int k,
double d) |
DoubleIndexer |
putDouble(int[] indices,
double d)
Casts value to primitive type and calls
put(int[] indices, <type> value). |
public static DoubleIndexer create(double[] array, int[] sizes, int[] strides)
new DoubleArrayIndexer(array, sizes, strides)public static DoubleIndexer create(DoubleBuffer buffer, int[] sizes, int[] strides)
new DoubleBufferIndexer(buffer, sizes, strides)public static DoubleIndexer create(DoublePointer pointer, int[] sizes, int[] strides)
create(pointer, sizes, strides, true)public static DoubleIndexer create(DoublePointer 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 double get(int i)
array/buffer[i]public DoubleIndexer get(int i, double[] d)
this where d = array/buffer[i]public abstract DoubleIndexer get(int i, double[] d, int offset, int length)
this where d[offset:offset + length] = array/buffer[i]public abstract double get(int i,
int j)
array/buffer[i * strides[0] + j]public DoubleIndexer get(int i, int j, double[] d)
this where d = array/buffer[i * strides[0] + j]public abstract DoubleIndexer get(int i, int j, double[] d, int offset, int length)
this where d[offset:offset + length] = array/buffer[i * strides[0] + j]public abstract double get(int i,
int j,
int k)
array/buffer[i * strides[0] + j * strides[1] + k]public abstract double get(int... indices)
array/buffer[index(indices)]public DoubleIndexer get(int[] indices, double[] d)
this where d = array/buffer[index(indices)]public abstract DoubleIndexer get(int[] indices, double[] d, int offset, int length)
this where d[offset:offset + length] = array/buffer[index(indices)]public abstract DoubleIndexer put(int i, double d)
this where array/buffer[i] = dpublic DoubleIndexer put(int i, double... d)
this where array/buffer[i] = dpublic abstract DoubleIndexer put(int i, double[] d, int offset, int length)
this where array/buffer[i] = d[offset:offset + length]public abstract DoubleIndexer put(int i, int j, double d)
this where array/buffer[i * strides[0] + j] = dpublic DoubleIndexer put(int i, int j, double... d)
this where array/buffer[i * strides[0] + j] = dpublic abstract DoubleIndexer put(int i, int j, double[] d, int offset, int length)
this where array/buffer[i * strides[0] + j] = d[offset:offset + length]public abstract DoubleIndexer put(int i, int j, int k, double d)
this where array/buffer[i * strides[0] + j * strides[1] + k] = dpublic abstract DoubleIndexer put(int[] indices, double d)
this where array/buffer[index(indices)] = dpublic DoubleIndexer put(int[] indices, double... d)
this where array/buffer[index(indices)] = dpublic abstract DoubleIndexer put(int[] indices, double[] d, int offset, int length)
this where array/buffer[index(indices)] = d[offset:offset + length]public double getDouble(int... indices)
Indexerget(int...indices) and returns the value as a double.public DoubleIndexer putDouble(int[] indices, double d)
Indexerput(int[] indices, <type> value).Copyright © 2015. All Rights Reserved.