public class LongRawIndexer extends LongIndexer
LongPointer
using the Raw
instance.Modifier and Type | Field and Description |
---|---|
(package private) long |
base
Base address and number of elements accessible.
|
protected LongPointer |
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
indexable, ONE_STRIDE, sizes, strides
Constructor and Description |
---|
LongRawIndexer(LongPointer pointer)
Calls
LongRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 }) . |
LongRawIndexer(LongPointer pointer,
long... sizes)
Calls
LongRawIndexer(pointer, sizes, strides(sizes)) . |
LongRawIndexer(LongPointer pointer,
long[] sizes,
long[] strides)
|
Modifier and Type | Method and Description |
---|---|
long |
get(long... indices)
Returns
array/buffer[index(indices)] |
long |
get(long i)
Returns
array/buffer[i] |
LongIndexer |
get(long[] indices,
long[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(indices)] |
long |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
LongIndexer |
get(long i,
long[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i] |
long |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
LongIndexer |
get(long i,
long j,
long[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i * strides[0] + j] |
Pointer |
pointer()
Returns the backing pointer, or
null if none |
LongIndexer |
put(long[] indices,
long l)
Returns
this where array/buffer[index(indices)] = l |
LongIndexer |
put(long[] indices,
long[] l,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = l[offset:offset + length] |
LongIndexer |
put(long i,
long l)
Returns
this where array/buffer[i] = l |
LongIndexer |
put(long i,
long[] l,
int offset,
int length)
Returns
this where array/buffer[i] = l[offset:offset + length] |
LongIndexer |
put(long i,
long j,
long l)
Returns
this where array/buffer[i * strides[0] + j] = l |
LongIndexer |
put(long i,
long j,
long[] l,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = l[offset:offset + length] |
LongIndexer |
put(long i,
long j,
long k,
long l)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = l |
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, get, get, get, getDouble, put, put, put, putDouble
protected static final Raw RAW
protected LongPointer pointer
final long base
final long size
public LongRawIndexer(LongPointer pointer)
LongRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 })
.public LongRawIndexer(LongPointer pointer, long... sizes)
LongRawIndexer(pointer, sizes, strides(sizes))
.public LongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
public Pointer pointer()
Indexer
null
if nonepublic long get(long i)
LongIndexer
array/buffer[i]
get
in class LongIndexer
public LongIndexer get(long i, long[] l, int offset, int length)
LongIndexer
this
where l[offset:offset + length] = array/buffer[i]
get
in class LongIndexer
public long get(long i, long j)
LongIndexer
array/buffer[i * strides[0] + j]
get
in class LongIndexer
public LongIndexer get(long i, long j, long[] l, int offset, int length)
LongIndexer
this
where l[offset:offset + length] = array/buffer[i * strides[0] + j]
get
in class LongIndexer
public long get(long i, long j, long k)
LongIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
get
in class LongIndexer
public long get(long... indices)
LongIndexer
array/buffer[index(indices)]
get
in class LongIndexer
public LongIndexer get(long[] indices, long[] l, int offset, int length)
LongIndexer
this
where l[offset:offset + length] = array/buffer[index(indices)]
get
in class LongIndexer
public LongIndexer put(long i, long l)
LongIndexer
this
where array/buffer[i] = l
put
in class LongIndexer
public LongIndexer put(long i, long[] l, int offset, int length)
LongIndexer
this
where array/buffer[i] = l[offset:offset + length]
put
in class LongIndexer
public LongIndexer put(long i, long j, long l)
LongIndexer
this
where array/buffer[i * strides[0] + j] = l
put
in class LongIndexer
public LongIndexer put(long i, long j, long[] l, int offset, int length)
LongIndexer
this
where array/buffer[i * strides[0] + j] = l[offset:offset + length]
put
in class LongIndexer
public LongIndexer put(long i, long j, long k, long l)
LongIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = l
put
in class LongIndexer
public LongIndexer put(long[] indices, long l)
LongIndexer
this
where array/buffer[index(indices)] = l
put
in class LongIndexer
public LongIndexer put(long[] indices, long[] l, int offset, int length)
LongIndexer
this
where array/buffer[index(indices)] = l[offset:offset + length]
put
in class LongIndexer
Copyright © 2020. All rights reserved.