| Modifier and Type | Method and Description |
|---|---|
ShortNdArray |
ShortNdArray.read(ShortDataBuffer dst) |
static ShortNdArray |
NdArrays.wrap(Shape shape,
ShortDataBuffer buffer)
Wraps a buffer in a short N-dimensional array of a given shape.
|
ShortNdArray |
ShortNdArray.write(ShortDataBuffer src) |
| Modifier and Type | Method and Description |
|---|---|
ShortDataBuffer |
ByteDataBuffer.asShorts()
Return this byte buffer as a buffer of shorts.
|
ShortDataBuffer |
ShortDataBuffer.copyTo(DataBuffer<Short> dst,
long size) |
default ShortDataBuffer |
ShortDataBuffer.narrow(long size) |
static ShortDataBuffer |
DataBuffers.of(short... values)
Create a buffer from an array of shorts into a data buffer.
|
static ShortDataBuffer |
DataBuffers.of(short[] array,
boolean readOnly,
boolean makeCopy)
Create a buffer from an array of shorts into a data buffer.
|
static ShortDataBuffer |
DataBuffers.of(ShortBuffer buf)
Wraps a JDK NIO
ShortBuffer into a data buffer. |
default ShortDataBuffer |
ShortDataBuffer.offset(long index) |
static ShortDataBuffer |
DataBuffers.ofShorts(long size)
Creates a buffer of shorts that can store up to
size values |
default ShortDataBuffer |
ShortDataBuffer.read(short[] dst)
Bulk get method, using short arrays.
|
ShortDataBuffer |
ShortDataBuffer.read(short[] dst,
int offset,
int length)
Bulk get method, using short arrays.
|
default ShortDataBuffer |
ShortDataBuffer.setObject(Short value,
long index) |
ShortDataBuffer |
ShortDataBuffer.setShort(short value,
long index)
Writes the given short into this buffer at the given index.
|
ShortDataBuffer |
ShortDataBuffer.slice(long index,
long size) |
default ShortDataBuffer |
ShortDataBuffer.write(short[] src)
Bulk put method, using short arrays.
|
ShortDataBuffer |
ShortDataBuffer.write(short[] src,
int offset,
int length)
Bulk put method, using short arrays.
|
| Modifier and Type | Method and Description |
|---|---|
default DataBufferWindow<ShortDataBuffer> |
ShortDataBuffer.window(long size) |
| Modifier and Type | Field and Description |
|---|---|
static FloatDataLayout<ShortDataBuffer> |
DataLayouts.BFLOAT16
Data layout for converting 16-bit bfloats to/from short values.
|
static FloatDataLayout<ShortDataBuffer> |
DataLayouts.FLOAT16
Data layout for converting 16-bit half floats to/from short values.
|
| Modifier and Type | Method and Description |
|---|---|
default ShortDataBuffer |
ShortDataLayout.applyTo(S buffer) |
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
ShortDataLayout<S> layout)
Creates an adapter that applies a short data layout to the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
float |
Bfloat16Layout.readFloat(ShortDataBuffer buffer,
long index) |
float |
Float16Layout.readFloat(ShortDataBuffer buffer,
long index) |
void |
Bfloat16Layout.writeFloat(ShortDataBuffer buffer,
float value,
long index) |
void |
Float16Layout.writeFloat(ShortDataBuffer buffer,
float value,
long index) |
| Modifier and Type | Method and Description |
|---|---|
static ShortDataBuffer |
NioDataBufferFactory.create(ShortBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
static ShortDataBuffer |
RawDataBufferFactory.create(short[] array,
boolean readOnly) |
protected static ShortDataBuffer |
RawDataBufferFactory.mapNativeShorts(long address,
long size,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
protected ShortDataBuffer |
ShortDenseNdArray.buffer() |
| Modifier and Type | Method and Description |
|---|---|
static ShortNdArray |
ShortDenseNdArray.create(ShortDataBuffer buffer,
Shape shape) |
ShortNdArray |
ShortDenseNdArray.read(ShortDataBuffer dst) |
ShortNdArray |
ShortDenseNdArray.write(ShortDataBuffer src) |
| Constructor and Description |
|---|
ShortDenseNdArray(ShortDataBuffer buffer,
Shape shape) |
Copyright © 2015–2020. All rights reserved.