public class BooleanArrayIndexer extends BooleanIndexer
boolean[] array.| Modifier and Type | Field and Description |
|---|---|
protected boolean[] |
array
The backing array.
|
VALUE_BYTES| Constructor and Description |
|---|
BooleanArrayIndexer(boolean[] array)
Calls
BooleanArrayIndexer(array, Index.create(array.length)). |
BooleanArrayIndexer(boolean[] array,
Index index)
Constructor to set the
array and Indexer.index. |
BooleanArrayIndexer(boolean[] array,
long... sizes)
Calls
BooleanArrayIndexer(array, Index.create(sizes)). |
BooleanArrayIndexer(boolean[] array,
long[] sizes,
long[] strides)
Calls
BooleanArrayIndexer(array, Index.create(sizes, strides)). |
| Modifier and Type | Method and Description |
|---|---|
boolean[] |
array()
Returns the backing array, or
null if none |
boolean |
get(long... indices)
Returns
array/buffer[index(indices)] |
boolean |
get(long i)
Returns
array/buffer[index(i)] |
BooleanIndexer |
get(long[] indices,
boolean[] b,
int offset,
int length)
Returns
this where b[offset:offset + length] = array/buffer[index(indices)] |
BooleanIndexer |
get(long i,
boolean[] b,
int offset,
int length)
Returns
this where b[offset:offset + length] = array/buffer[index(i)] |
boolean |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
BooleanIndexer |
get(long i,
long j,
boolean[] b,
int offset,
int length)
Returns
this where b[offset:offset + length] = array/buffer[index(i, j)] |
boolean |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
BooleanIndexer |
put(long[] indices,
boolean b)
Returns
this where array/buffer[index(indices)] = b |
BooleanIndexer |
put(long[] indices,
boolean[] b,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = b[offset:offset + length] |
BooleanIndexer |
put(long i,
boolean b)
Returns
this where array/buffer[index(i)] = b |
BooleanIndexer |
put(long i,
boolean[] b,
int offset,
int length)
Returns
this where array/buffer[index(i)] = b[offset:offset + length] |
BooleanIndexer |
put(long i,
long j,
boolean b)
Returns
this where array/buffer[index(i, j)] = b |
BooleanIndexer |
put(long i,
long j,
boolean[] b,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = b[offset:offset + length] |
BooleanIndexer |
put(long i,
long j,
long k,
boolean b)
Returns
this where array/buffer[index(i, j, k)] = b |
BooleanIndexer |
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, putDoublepublic BooleanArrayIndexer(boolean[] array)
BooleanArrayIndexer(array, Index.create(array.length)).public BooleanArrayIndexer(boolean[] array,
long... sizes)
BooleanArrayIndexer(array, Index.create(sizes)).public BooleanArrayIndexer(boolean[] array,
long[] sizes,
long[] strides)
BooleanArrayIndexer(array, Index.create(sizes, strides)).public BooleanArrayIndexer(boolean[] array,
Index index)
array and Indexer.index.public boolean[] array()
Indexernull if nonepublic BooleanIndexer reindex(Index index)
Indexerpublic boolean get(long i)
BooleanIndexerarray/buffer[index(i)]get in class BooleanIndexerpublic BooleanIndexer get(long i, boolean[] b, int offset, int length)
BooleanIndexerthis where b[offset:offset + length] = array/buffer[index(i)]get in class BooleanIndexerpublic boolean get(long i,
long j)
BooleanIndexerarray/buffer[index(i, j)]get in class BooleanIndexerpublic BooleanIndexer get(long i, long j, boolean[] b, int offset, int length)
BooleanIndexerthis where b[offset:offset + length] = array/buffer[index(i, j)]get in class BooleanIndexerpublic boolean get(long i,
long j,
long k)
BooleanIndexerarray/buffer[index(i, j, k)]get in class BooleanIndexerpublic boolean get(long... indices)
BooleanIndexerarray/buffer[index(indices)]get in class BooleanIndexerpublic BooleanIndexer get(long[] indices, boolean[] b, int offset, int length)
BooleanIndexerthis where b[offset:offset + length] = array/buffer[index(indices)]get in class BooleanIndexerpublic BooleanIndexer put(long i, boolean b)
BooleanIndexerthis where array/buffer[index(i)] = bput in class BooleanIndexerpublic BooleanIndexer put(long i, boolean[] b, int offset, int length)
BooleanIndexerthis where array/buffer[index(i)] = b[offset:offset + length]put in class BooleanIndexerpublic BooleanIndexer put(long i, long j, boolean b)
BooleanIndexerthis where array/buffer[index(i, j)] = bput in class BooleanIndexerpublic BooleanIndexer put(long i, long j, boolean[] b, int offset, int length)
BooleanIndexerthis where array/buffer[index(i, j)] = b[offset:offset + length]put in class BooleanIndexerpublic BooleanIndexer put(long i, long j, long k, boolean b)
BooleanIndexerthis where array/buffer[index(i, j, k)] = bput in class BooleanIndexerpublic BooleanIndexer put(long[] indices, boolean b)
BooleanIndexerthis where array/buffer[index(indices)] = bput in class BooleanIndexerpublic BooleanIndexer put(long[] indices, boolean[] b, int offset, int length)
BooleanIndexerthis where array/buffer[index(indices)] = b[offset:offset + length]put in class BooleanIndexerCopyright © 2020. All rights reserved.