Package org.bytedeco.javacpp.indexer
Class LongArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.LongIndexer
org.bytedeco.javacpp.indexer.LongArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
long[]
array.-
Field Summary
FieldsFields inherited from class org.bytedeco.javacpp.indexer.LongIndexer
VALUE_BYTES
-
Constructor Summary
ConstructorsConstructorDescriptionLongArrayIndexer
(long[] array) CallsLongArrayIndexer(array, Index.create(array.length))
.LongArrayIndexer
(long[] array, long... sizes) CallsLongArrayIndexer(array, Index.create(sizes))
.LongArrayIndexer
(long[] array, long[] sizes, long[] strides) CallsLongArrayIndexer(array, Index.create(sizes, strides))
.LongArrayIndexer
(long[] array, Index index) Constructor to set thearray
andIndexer.index
. -
Method Summary
Modifier and TypeMethodDescriptionlong[]
array()
Returns the backing array, ornull
if nonelong
get
(long i) Returnsarray/buffer[index(i)]
long
get
(long... indices) Returnsarray/buffer[index(indices)]
get
(long[] indices, long[] l, int offset, int length) Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
long
get
(long i, long j) Returnsarray/buffer[index(i, j)]
get
(long i, long[] l, int offset, int length) Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
long
get
(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]
get
(long i, long j, long[] l, int offset, int length) Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
put
(long[] indices, long l) Returnsthis
wherearray/buffer[index(indices)] = l
put
(long[] indices, long[] l, int offset, int length) Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
put
(long i, long l) Returnsthis
wherearray/buffer[index(i)] = l
put
(long i, long[] l, int offset, int length) Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
put
(long i, long j, long l) Returnsthis
wherearray/buffer[index(i, j)] = l
put
(long i, long j, long[] l, int offset, int length) Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
put
(long i, long j, long k, long l) Returnsthis
wherearray/buffer[index(i, j, k)] = l
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.Methods inherited from class org.bytedeco.javacpp.indexer.LongIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
Field Details
-
array
protected long[] arrayThe backing array.
-
-
Constructor Details
-
LongArrayIndexer
public LongArrayIndexer(long[] array) CallsLongArrayIndexer(array, Index.create(array.length))
. -
LongArrayIndexer
public LongArrayIndexer(long[] array, long... sizes) CallsLongArrayIndexer(array, Index.create(sizes))
. -
LongArrayIndexer
public LongArrayIndexer(long[] array, long[] sizes, long[] strides) CallsLongArrayIndexer(array, Index.create(sizes, strides))
. -
LongArrayIndexer
Constructor to set thearray
andIndexer.index
.
-
-
Method Details
-
array
public long[] array()Description copied from class:Indexer
Returns the backing array, ornull
if none -
reindex
Description copied from class:Indexer
Returns a new Indexer using the same data, but with a different Index. -
get
public long get(long i) Description copied from class:LongIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classLongIndexer
-
get
Description copied from class:LongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classLongIndexer
-
get
public long get(long i, long j) Description copied from class:LongIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classLongIndexer
-
get
Description copied from class:LongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classLongIndexer
-
get
public long get(long i, long j, long k) Description copied from class:LongIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classLongIndexer
-
get
public long get(long... indices) Description copied from class:LongIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classLongIndexer
-
get
Description copied from class:LongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i)] = l
- Specified by:
put
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
- Specified by:
put
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i, j)] = l
- Specified by:
put
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
- Specified by:
put
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = l
- Specified by:
put
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(indices)] = l
- Specified by:
put
in classLongIndexer
-
put
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
- Specified by:
put
in classLongIndexer
-
release
public void release()Description copied from class:Indexer
Makes sure changes are reflected onto the backing memory and clears any references.
-