public abstract class UIntIndexer extends Indexer
int primitive type, treated as unsigned.| Modifier and Type | Field and Description |
|---|---|
static int |
VALUE_BYTES
The number of bytes used to represent an int.
|
| Modifier | Constructor and Description |
|---|---|
protected |
UIntIndexer(Index index) |
protected |
UIntIndexer(long[] sizes,
long[] strides) |
| Modifier and Type | Method and Description |
|---|---|
static UIntIndexer |
create(int[] array)
Returns
new UIntArrayIndexer(array) |
static UIntIndexer |
create(int[] array,
Index index)
Returns
new UIntArrayIndexer(array, index) |
static UIntIndexer |
create(int[] array,
long... sizes)
Returns
new UIntArrayIndexer(array, sizes) |
static UIntIndexer |
create(int[] array,
long[] sizes,
long[] strides)
Returns
new UIntArrayIndexer(array, sizes, strides) |
static UIntIndexer |
create(IntBuffer buffer)
Returns
new UIntBufferIndexer(buffer) |
static UIntIndexer |
create(IntBuffer buffer,
Index index)
Returns
new UIntBufferIndexer(buffer, index) |
static UIntIndexer |
create(IntBuffer buffer,
long... sizes)
Returns
new UIntBufferIndexer(buffer, sizes) |
static UIntIndexer |
create(IntBuffer buffer,
long[] sizes,
long[] strides)
Returns
new UIntBufferIndexer(buffer, sizes, strides) |
static UIntIndexer |
create(IntPointer pointer)
Returns
new UIntRawIndexer(pointer) |
static UIntIndexer |
create(IntPointer pointer,
Index index)
Returns
new UIntRawIndexer(pointer, index) |
static UIntIndexer |
create(IntPointer pointer,
Index index,
boolean direct)
Creates a int indexer to access efficiently the data of a pointer.
|
static UIntIndexer |
create(IntPointer pointer,
long... sizes)
Returns
new UIntRawIndexer(pointer, sizes) |
static UIntIndexer |
create(IntPointer pointer,
long[] sizes,
long[] strides)
Returns
new UIntRawIndexer(pointer, sizes, strides) |
static UIntIndexer |
create(IntPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Returns
create(pointer, Index.create(sizes, strides), direct) |
abstract long |
get(long... indices)
Returns
array/buffer[index(indices)] |
abstract long |
get(long i)
Returns
array/buffer[index(i)] |
UIntIndexer |
get(long[] indices,
long[] n)
Returns
this where n = array/buffer[index(indices)] |
abstract UIntIndexer |
get(long[] indices,
long[] n,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(indices)] |
abstract long |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
UIntIndexer |
get(long i,
long[] n)
Returns
this where n = array/buffer[index(i)] |
abstract UIntIndexer |
get(long i,
long[] n,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i)] |
abstract long |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
UIntIndexer |
get(long i,
long j,
long[] n)
Returns
this where n = array/buffer[index(i, j)] |
abstract UIntIndexer |
get(long i,
long j,
long[] n,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i, j)] |
double |
getDouble(long... indices)
Calls
get(int...indices) and returns the value as a double. |
UIntIndexer |
put(long[] indices,
long... n)
Returns
this where array/buffer[index(indices)] = n |
abstract UIntIndexer |
put(long[] indices,
long n)
Returns
this where array/buffer[index(indices)] = n |
abstract UIntIndexer |
put(long[] indices,
long[] n,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long... n)
Returns
this where array/buffer[index(i)] = n |
abstract UIntIndexer |
put(long i,
long n)
Returns
this where array/buffer[index(i)] = n |
abstract UIntIndexer |
put(long i,
long[] n,
int offset,
int length)
Returns
this where array/buffer[index(i)] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long... n)
Returns
this where array/buffer[index(i, j)] = n |
abstract UIntIndexer |
put(long i,
long j,
long n)
Returns
this where array/buffer[index(i, j)] = n |
abstract UIntIndexer |
put(long i,
long j,
long[] n,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = n[offset:offset + length] |
abstract UIntIndexer |
put(long i,
long j,
long k,
long n)
Returns
this where array/buffer[index(i, j, k)] = n |
UIntIndexer |
putDouble(long[] indices,
double n)
Casts value to primitive type and calls
put(long[] indices, <type> value). |
public static final int VALUE_BYTES
protected UIntIndexer(Index index)
protected UIntIndexer(long[] sizes,
long[] strides)
public static UIntIndexer create(int[] array)
new UIntArrayIndexer(array)public static UIntIndexer create(IntBuffer buffer)
new UIntBufferIndexer(buffer)public static UIntIndexer create(IntPointer pointer)
new UIntRawIndexer(pointer)public static UIntIndexer create(int[] array, Index index)
new UIntArrayIndexer(array, index)public static UIntIndexer create(IntBuffer buffer, Index index)
new UIntBufferIndexer(buffer, index)public static UIntIndexer create(IntPointer pointer, Index index)
new UIntRawIndexer(pointer, index)public static UIntIndexer create(int[] array, long... sizes)
new UIntArrayIndexer(array, sizes)public static UIntIndexer create(IntBuffer buffer, long... sizes)
new UIntBufferIndexer(buffer, sizes)public static UIntIndexer create(IntPointer pointer, long... sizes)
new UIntRawIndexer(pointer, sizes)public static UIntIndexer create(int[] array, long[] sizes, long[] strides)
new UIntArrayIndexer(array, sizes, strides)public static UIntIndexer create(IntBuffer buffer, long[] sizes, long[] strides)
new UIntBufferIndexer(buffer, sizes, strides)public static UIntIndexer create(IntPointer pointer, long[] sizes, long[] strides)
new UIntRawIndexer(pointer, sizes, strides)public static UIntIndexer create(IntPointer pointer, long[] sizes, long[] strides, boolean direct)
create(pointer, Index.create(sizes, strides), direct)public static UIntIndexer create(IntPointer 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 long get(long i)
array/buffer[index(i)]public UIntIndexer get(long i, long[] n)
this where n = array/buffer[index(i)]public abstract UIntIndexer get(long i, long[] n, int offset, int length)
this where n[offset:offset + length] = array/buffer[index(i)]public abstract long get(long i,
long j)
array/buffer[index(i, j)]public UIntIndexer get(long i, long j, long[] n)
this where n = array/buffer[index(i, j)]public abstract UIntIndexer get(long i, long j, long[] n, int offset, int length)
this where n[offset:offset + length] = array/buffer[index(i, j)]public abstract long get(long i,
long j,
long k)
array/buffer[index(i, j, k)]public abstract long get(long... indices)
array/buffer[index(indices)]public UIntIndexer get(long[] indices, long[] n)
this where n = array/buffer[index(indices)]public abstract UIntIndexer get(long[] indices, long[] n, int offset, int length)
this where n[offset:offset + length] = array/buffer[index(indices)]public abstract UIntIndexer put(long i, long n)
this where array/buffer[index(i)] = npublic UIntIndexer put(long i, long... n)
this where array/buffer[index(i)] = npublic abstract UIntIndexer put(long i, long[] n, int offset, int length)
this where array/buffer[index(i)] = n[offset:offset + length]public abstract UIntIndexer put(long i, long j, long n)
this where array/buffer[index(i, j)] = npublic UIntIndexer put(long i, long j, long... n)
this where array/buffer[index(i, j)] = npublic abstract UIntIndexer put(long i, long j, long[] n, int offset, int length)
this where array/buffer[index(i, j)] = n[offset:offset + length]public abstract UIntIndexer put(long i, long j, long k, long n)
this where array/buffer[index(i, j, k)] = npublic abstract UIntIndexer put(long[] indices, long n)
this where array/buffer[index(indices)] = npublic UIntIndexer put(long[] indices, long... n)
this where array/buffer[index(indices)] = npublic abstract UIntIndexer put(long[] indices, long[] n, int offset, int length)
this where array/buffer[index(indices)] = n[offset:offset + length]public double getDouble(long... indices)
Indexerget(int...indices) and returns the value as a double.public UIntIndexer putDouble(long[] indices, double n)
Indexerput(long[] indices, <type> value).Copyright © 2025. All rights reserved.