| Modifier and Type | Method and Description |
|---|---|
FloatNdArray |
FloatNdArray.read(FloatDataBuffer dst) |
static FloatNdArray |
NdArrays.wrap(Shape shape,
FloatDataBuffer buffer)
Wraps a buffer in a float N-dimensional array of a given shape.
|
FloatNdArray |
FloatNdArray.write(FloatDataBuffer src) |
| Modifier and Type | Method and Description |
|---|---|
FloatDataBuffer |
ByteDataBuffer.asFloats()
Return this byte buffer as a buffer of floats.
|
FloatDataBuffer |
FloatDataBuffer.copyTo(DataBuffer<Float> dst,
long size) |
default FloatDataBuffer |
FloatDataBuffer.narrow(long size) |
static FloatDataBuffer |
DataBuffers.of(float... values)
Create a buffer from an array of floats into a data buffer.
|
static FloatDataBuffer |
DataBuffers.of(float[] array,
boolean readOnly,
boolean makeCopy)
Create a buffer from an array of floats into a data buffer.
|
static FloatDataBuffer |
DataBuffers.of(FloatBuffer buf)
Wraps a JDK NIO
FloatBuffer into a data buffer. |
static FloatDataBuffer |
DataBuffers.ofFloats(long size)
Creates a buffer of floats that can store up to
size values |
default FloatDataBuffer |
FloatDataBuffer.offset(long index) |
default FloatDataBuffer |
FloatDataBuffer.read(float[] dst)
Bulk get method, using float arrays.
|
FloatDataBuffer |
FloatDataBuffer.read(float[] dst,
int offset,
int length)
Bulk get method, using float arrays.
|
FloatDataBuffer |
FloatDataBuffer.setFloat(float value,
long index)
Writes the given float into this buffer at the given index.
|
default FloatDataBuffer |
FloatDataBuffer.setObject(Float value,
long index) |
FloatDataBuffer |
FloatDataBuffer.slice(long index,
long size) |
default FloatDataBuffer |
FloatDataBuffer.write(float[] src)
Bulk put method, using float arrays.
|
FloatDataBuffer |
FloatDataBuffer.write(float[] src,
int offset,
int length)
Bulk put method, using float arrays.
|
| Modifier and Type | Method and Description |
|---|---|
default DataBufferWindow<FloatDataBuffer> |
FloatDataBuffer.window(long size) |
| Modifier and Type | Method and Description |
|---|---|
default FloatDataBuffer |
FloatDataLayout.applyTo(S buffer) |
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
FloatDataLayout<S> layout)
Creates an adapter that applies a float data layout to the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
static FloatDataBuffer |
NioDataBufferFactory.create(FloatBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
static FloatDataBuffer |
RawDataBufferFactory.create(float[] array,
boolean readOnly) |
protected static FloatDataBuffer |
RawDataBufferFactory.mapNativeFloats(long address,
long size,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
FloatDataBuffer |
FloatDenseNdArray.buffer() |
| Modifier and Type | Method and Description |
|---|---|
static FloatNdArray |
FloatDenseNdArray.create(FloatDataBuffer buffer,
Shape shape) |
FloatNdArray |
FloatDenseNdArray.read(FloatDataBuffer dst) |
FloatNdArray |
FloatDenseNdArray.write(FloatDataBuffer src) |
| Constructor and Description |
|---|
FloatDenseNdArray(FloatDataBuffer buffer,
Shape shape) |
Copyright © 2015–2020. All rights reserved.