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