public class IntRawIndexer extends IntIndexer
IntPointer
using the Raw
instance.Modifier and Type | Field and Description |
---|---|
(package private) long |
base
Base address and number of elements accessible.
|
protected IntPointer |
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 |
---|
IntRawIndexer(IntPointer pointer)
Calls
IntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())) . |
IntRawIndexer(IntPointer pointer,
Index index)
Constructor to set the
pointer and Indexer.index . |
IntRawIndexer(IntPointer pointer,
long... sizes)
Calls
IntRawIndexer(pointer, Index.create(sizes)) . |
IntRawIndexer(IntPointer pointer,
long[] sizes,
long[] strides)
Calls
IntRawIndexer(pointer, Index.create(sizes, strides)) . |
Modifier and Type | Method and Description |
---|---|
int |
get(long... indices)
Returns
array/buffer[index(indices)] |
int |
get(long i)
Returns
array/buffer[index(i)] |
IntIndexer |
get(long[] indices,
int[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(indices)] |
IntIndexer |
get(long i,
int[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i)] |
int |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
IntIndexer |
get(long i,
long j,
int[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(i, j)] |
int |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
int |
getRaw(long i) |
Pointer |
pointer()
Returns the backing pointer, or
null if none |
IntIndexer |
put(long[] indices,
int n)
Returns
this where array/buffer[index(indices)] = n |
IntIndexer |
put(long[] indices,
int[] m,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = n[offset:offset + length] |
IntIndexer |
put(long i,
int n)
Returns
this where array/buffer[index(i)] = n |
IntIndexer |
put(long i,
int[] m,
int offset,
int length)
Returns
this where array/buffer[index(i)] = n[offset:offset + length] |
IntIndexer |
put(long i,
long j,
int n)
Returns
this where array/buffer[index(i, j)] = n |
IntIndexer |
put(long i,
long j,
int[] m,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = n[offset:offset + length] |
IntIndexer |
put(long i,
long j,
long k,
int n)
Returns
this where array/buffer[index(i, j, k)] = n |
IntIndexer |
putRaw(long i,
int n) |
IntIndexer |
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, putDouble
protected static final Raw RAW
protected IntPointer pointer
final long base
final long size
public IntRawIndexer(IntPointer pointer)
IntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.public IntRawIndexer(IntPointer pointer, long... sizes)
IntRawIndexer(pointer, Index.create(sizes))
.public IntRawIndexer(IntPointer pointer, long[] sizes, long[] strides)
IntRawIndexer(pointer, Index.create(sizes, strides))
.public IntRawIndexer(IntPointer pointer, Index index)
pointer
and Indexer.index
.public Pointer pointer()
Indexer
null
if nonepublic IntIndexer reindex(Index index)
Indexer
public int getRaw(long i)
public int get(long i)
IntIndexer
array/buffer[index(i)]
get
in class IntIndexer
public IntIndexer get(long i, int[] m, int offset, int length)
IntIndexer
this
where n[offset:offset + length] = array/buffer[index(i)]
get
in class IntIndexer
public int get(long i, long j)
IntIndexer
array/buffer[index(i, j)]
get
in class IntIndexer
public IntIndexer get(long i, long j, int[] m, int offset, int length)
IntIndexer
this
where n[offset:offset + length] = array/buffer[index(i, j)]
get
in class IntIndexer
public int get(long i, long j, long k)
IntIndexer
array/buffer[index(i, j, k)]
get
in class IntIndexer
public int get(long... indices)
IntIndexer
array/buffer[index(indices)]
get
in class IntIndexer
public IntIndexer get(long[] indices, int[] m, int offset, int length)
IntIndexer
this
where n[offset:offset + length] = array/buffer[index(indices)]
get
in class IntIndexer
public IntIndexer putRaw(long i, int n)
public IntIndexer put(long i, int n)
IntIndexer
this
where array/buffer[index(i)] = n
put
in class IntIndexer
public IntIndexer put(long i, int[] m, int offset, int length)
IntIndexer
this
where array/buffer[index(i)] = n[offset:offset + length]
put
in class IntIndexer
public IntIndexer put(long i, long j, int n)
IntIndexer
this
where array/buffer[index(i, j)] = n
put
in class IntIndexer
public IntIndexer put(long i, long j, int[] m, int offset, int length)
IntIndexer
this
where array/buffer[index(i, j)] = n[offset:offset + length]
put
in class IntIndexer
public IntIndexer put(long i, long j, long k, int n)
IntIndexer
this
where array/buffer[index(i, j, k)] = n
put
in class IntIndexer
public IntIndexer put(long[] indices, int n)
IntIndexer
this
where array/buffer[index(indices)] = n
put
in class IntIndexer
public IntIndexer put(long[] indices, int[] m, int offset, int length)
IntIndexer
this
where array/buffer[index(indices)] = n[offset:offset + length]
put
in class IntIndexer
Copyright © 2024. All rights reserved.