Class UShortArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.UShortIndexer
org.bytedeco.javacpp.indexer.UShortArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
short[] array, treated as unsigned.-
Field Summary
FieldsFields inherited from class UShortIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionUShortArrayIndexer(short[] array) CallsUShortArrayIndexer(array, Index.create(array.length)).UShortArrayIndexer(short[] array, long... sizes) CallsUShortArrayIndexer(array, Index.create(sizes)).UShortArrayIndexer(short[] array, long[] sizes, long[] strides) CallsUShortArrayIndexer(array, Index.create(sizes, strides)).UShortArrayIndexer(short[] array, Index index) Constructor to set thearrayandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionshort[]array()Returns the backing array, ornullif noneintget(long i) Returnsarray/buffer[index(i)]intget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, int[] s, int offset, int length) Returnsthiswheres[offset:offset + length] = array/buffer[index(indices)]get(long i, int[] s, int offset, int length) Returnsthiswheres[offset:offset + length] = array/buffer[index(i)]intget(long i, long j) Returnsarray/buffer[index(i, j)]get(long i, long j, int[] s, int offset, int length) Returnsthiswheres[offset:offset + length] = array/buffer[index(i, j)]intget(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]put(long[] indices, int s) Returnsthiswherearray/buffer[index(indices)] = sput(long[] indices, int[] s, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = s[offset:offset + length]put(long i, int s) Returnsthiswherearray/buffer[index(i)] = sput(long i, int[] s, int offset, int length) Returnsthiswherearray/buffer[index(i)] = s[offset:offset + length]put(long i, long j, int s) Returnsthiswherearray/buffer[index(i, j)] = sput(long i, long j, int[] s, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = s[offset:offset + length]put(long i, long j, long k, int s) Returnsthiswherearray/buffer[index(i, j, k)] = sReturns a new Indexer using the same data, but with a different Index.voidrelease()Makes sure changes are reflected onto the backing memory and clears any references.Methods inherited from class UShortIndexer
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 short[] arrayThe backing array.
-
-
Constructor Details
-
UShortArrayIndexer
public UShortArrayIndexer(short[] array) CallsUShortArrayIndexer(array, Index.create(array.length)). -
UShortArrayIndexer
public UShortArrayIndexer(short[] array, long... sizes) CallsUShortArrayIndexer(array, Index.create(sizes)). -
UShortArrayIndexer
public UShortArrayIndexer(short[] array, long[] sizes, long[] strides) CallsUShortArrayIndexer(array, Index.create(sizes, strides)). -
UShortArrayIndexer
Constructor to set thearrayandIndexer.index.
-
-
Method Details
-
array
-
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
get
public int get(long i) Description copied from class:UShortIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classUShortIndexer
-
get
Description copied from class:UShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classUShortIndexer
-
get
public int get(long i, long j) Description copied from class:UShortIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classUShortIndexer
-
get
Description copied from class:UShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classUShortIndexer
-
get
public int get(long i, long j, long k) Description copied from class:UShortIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classUShortIndexer
-
get
public int get(long... indices) Description copied from class:UShortIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classUShortIndexer
-
get
Description copied from class:UShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i)] = s- Specified by:
putin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i)] = s[offset:offset + length]- Specified by:
putin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i, j)] = s- Specified by:
putin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i, j)] = s[offset:offset + length]- Specified by:
putin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i, j, k)] = s- Specified by:
putin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(indices)] = s- Specified by:
putin classUShortIndexer
-
put
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(indices)] = s[offset:offset + length]- Specified by:
putin classUShortIndexer
-
release
-