public class LongArrayIndexer extends LongIndexer
long[] array.| Modifier and Type | Field and Description |
|---|---|
protected long[] |
array
The backing array.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
LongArrayIndexer(long[] array)
Calls
LongArrayIndexer(array, { array.length }, { 1 }). |
LongArrayIndexer(long[] array,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
long[] |
array()
Returns the backing array, or
null if none |
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] |
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, get, get, get, getDouble, put, put, put, putDoublepublic LongArrayIndexer(long[] array)
LongArrayIndexer(array, { array.length }, { 1 }).public LongArrayIndexer(long[] array,
long[] sizes,
long[] strides)
public long[] array()
Indexernull if nonepublic long get(long i)
LongIndexerarray/buffer[i]get in class LongIndexerpublic LongIndexer get(long i, long[] l, int offset, int length)
LongIndexerthis where l[offset:offset + length] = array/buffer[i]get in class LongIndexerpublic long get(long i,
long j)
LongIndexerarray/buffer[i * strides[0] + j]get in class LongIndexerpublic LongIndexer get(long i, long j, long[] l, int offset, int length)
LongIndexerthis where l[offset:offset + length] = array/buffer[i * strides[0] + j]get in class LongIndexerpublic long get(long i,
long j,
long k)
LongIndexerarray/buffer[i * strides[0] + j * strides[1] + k]get in class LongIndexerpublic long get(long... indices)
LongIndexerarray/buffer[index(indices)]get in class LongIndexerpublic LongIndexer get(long[] indices, long[] l, int offset, int length)
LongIndexerthis where l[offset:offset + length] = array/buffer[index(indices)]get in class LongIndexerpublic LongIndexer put(long i, long l)
LongIndexerthis where array/buffer[i] = lput in class LongIndexerpublic LongIndexer put(long i, long[] l, int offset, int length)
LongIndexerthis where array/buffer[i] = l[offset:offset + length]put in class LongIndexerpublic LongIndexer put(long i, long j, long l)
LongIndexerthis where array/buffer[i * strides[0] + j] = lput in class LongIndexerpublic LongIndexer put(long i, long j, long[] l, int offset, int length)
LongIndexerthis where array/buffer[i * strides[0] + j] = l[offset:offset + length]put in class LongIndexerpublic LongIndexer put(long i, long j, long k, long l)
LongIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = lput in class LongIndexerpublic LongIndexer put(long[] indices, long l)
LongIndexerthis where array/buffer[index(indices)] = lput in class LongIndexerpublic LongIndexer put(long[] indices, long[] l, int offset, int length)
LongIndexerthis where array/buffer[index(indices)] = l[offset:offset + length]put in class LongIndexerCopyright © 2018. All rights reserved.