Package | Description |
---|---|
org.bytedeco.javacpp.indexer |
Contains classes for multidimensional access of arrays and buffers.
|
Modifier and Type | Class and Description |
---|---|
class |
HalfArrayIndexer
An indexer for a
short[] array, treated as half-precision float. |
class |
HalfBufferIndexer
An indexer for a
ShortBuffer , treated as half-precision float. |
class |
HalfRawIndexer
An indexer for a
ShortPointer using the Raw instance, treated as half-precision float. |
Modifier and Type | Method and Description |
---|---|
static HalfIndexer |
HalfIndexer.create(short[] array)
Returns
new HalfArrayIndexer(array) |
static HalfIndexer |
HalfIndexer.create(short[] array,
long... sizes)
Returns
new HalfArrayIndexer(array, sizes) |
static HalfIndexer |
HalfIndexer.create(short[] array,
long[] sizes,
long[] strides)
Returns
new HalfArrayIndexer(array, sizes, strides) |
static HalfIndexer |
HalfIndexer.create(ShortBuffer buffer)
Returns
new HalfBufferIndexer(buffer) |
static HalfIndexer |
HalfIndexer.create(ShortBuffer buffer,
long... sizes)
Returns
new HalfBufferIndexer(buffer, sizes) |
static HalfIndexer |
HalfIndexer.create(ShortBuffer buffer,
long[] sizes,
long[] strides)
Returns
new HalfBufferIndexer(buffer, sizes, strides) |
static HalfIndexer |
HalfIndexer.create(ShortPointer pointer)
Returns
create(pointer, { pointer.limit() - pointer.position() }, { 1 }, true) |
static HalfIndexer |
HalfIndexer.create(ShortPointer pointer,
long... sizes)
Returns
create(pointer, sizes, strides(sizes)) |
static HalfIndexer |
HalfIndexer.create(ShortPointer pointer,
long[] sizes,
long[] strides)
Returns
create(pointer, sizes, strides, true) |
static HalfIndexer |
HalfIndexer.create(ShortPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Creates a half float indexer to access efficiently the data of a pointer.
|
HalfIndexer |
HalfIndexer.get(long[] indices,
float[] h)
Returns
this where s = array/buffer[index(indices)] |
abstract HalfIndexer |
HalfIndexer.get(long[] indices,
float[] h,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[index(indices)] |
HalfIndexer |
HalfArrayIndexer.get(long[] indices,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfBufferIndexer.get(long[] indices,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfRawIndexer.get(long[] indices,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfIndexer.get(long i,
float[] h)
Returns
this where s = array/buffer[i] |
abstract HalfIndexer |
HalfIndexer.get(long i,
float[] h,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i] |
HalfIndexer |
HalfArrayIndexer.get(long i,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfBufferIndexer.get(long i,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfRawIndexer.get(long i,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfIndexer.get(long i,
long j,
float[] h)
Returns
this where s = array/buffer[i * strides[0] + j] |
abstract HalfIndexer |
HalfIndexer.get(long i,
long j,
float[] h,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i * strides[0] + j] |
HalfIndexer |
HalfArrayIndexer.get(long i,
long j,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfBufferIndexer.get(long i,
long j,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfRawIndexer.get(long i,
long j,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfIndexer.put(long[] indices,
float... h)
Returns
this where array/buffer[index(indices)] = s |
abstract HalfIndexer |
HalfIndexer.put(long[] indices,
float h)
Returns
this where array/buffer[index(indices)] = s |
HalfIndexer |
HalfArrayIndexer.put(long[] indices,
float h) |
HalfIndexer |
HalfBufferIndexer.put(long[] indices,
float h) |
HalfIndexer |
HalfRawIndexer.put(long[] indices,
float h) |
abstract HalfIndexer |
HalfIndexer.put(long[] indices,
float[] h,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = s[offset:offset + length] |
HalfIndexer |
HalfArrayIndexer.put(long[] indices,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfBufferIndexer.put(long[] indices,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfRawIndexer.put(long[] indices,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfIndexer.put(long i,
float... h)
Returns
this where array/buffer[i] = s |
abstract HalfIndexer |
HalfIndexer.put(long i,
float h)
Returns
this where array/buffer[i] = s |
HalfIndexer |
HalfArrayIndexer.put(long i,
float h) |
HalfIndexer |
HalfBufferIndexer.put(long i,
float h) |
HalfIndexer |
HalfRawIndexer.put(long i,
float h) |
abstract HalfIndexer |
HalfIndexer.put(long i,
float[] h,
int offset,
int length)
Returns
this where array/buffer[i] = s[offset:offset + length] |
HalfIndexer |
HalfArrayIndexer.put(long i,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfBufferIndexer.put(long i,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfRawIndexer.put(long i,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfIndexer.put(long i,
long j,
float... h)
Returns
this where array/buffer[i * strides[0] + j] = s |
abstract HalfIndexer |
HalfIndexer.put(long i,
long j,
float h)
Returns
this where array/buffer[i * strides[0] + j] = s |
HalfIndexer |
HalfArrayIndexer.put(long i,
long j,
float h) |
HalfIndexer |
HalfBufferIndexer.put(long i,
long j,
float h) |
HalfIndexer |
HalfRawIndexer.put(long i,
long j,
float h) |
abstract HalfIndexer |
HalfIndexer.put(long i,
long j,
float[] h,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = s[offset:offset + length] |
HalfIndexer |
HalfArrayIndexer.put(long i,
long j,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfBufferIndexer.put(long i,
long j,
float[] h,
int offset,
int length) |
HalfIndexer |
HalfRawIndexer.put(long i,
long j,
float[] h,
int offset,
int length) |
abstract HalfIndexer |
HalfIndexer.put(long i,
long j,
long k,
float h)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = s |
HalfIndexer |
HalfArrayIndexer.put(long i,
long j,
long k,
float h) |
HalfIndexer |
HalfBufferIndexer.put(long i,
long j,
long k,
float h) |
HalfIndexer |
HalfRawIndexer.put(long i,
long j,
long k,
float h) |
HalfIndexer |
HalfIndexer.putDouble(long[] indices,
double s) |
Copyright © 2020. All rights reserved.