| Modifier and Type | Method and Description |
|---|---|
BooleanNdArray |
BooleanNdArray.read(DataBuffer<Boolean> dst) |
ByteNdArray |
ByteNdArray.read(DataBuffer<Byte> dst) |
DoubleNdArray |
DoubleNdArray.read(DataBuffer<Double> dst) |
FloatNdArray |
FloatNdArray.read(DataBuffer<Float> dst) |
IntNdArray |
IntNdArray.read(DataBuffer<Integer> dst) |
LongNdArray |
LongNdArray.read(DataBuffer<Long> dst) |
ShortNdArray |
ShortNdArray.read(DataBuffer<Short> dst) |
NdArray<T> |
NdArray.read(DataBuffer<T> dst)
Read the content of this N-dimensional array into the destination buffer.
|
static <T> NdArray<T> |
NdArrays.wrap(Shape shape,
DataBuffer<T> buffer)
Wraps a buffer in an N-dimensional array of a given shape.
|
BooleanNdArray |
BooleanNdArray.write(DataBuffer<Boolean> src) |
ByteNdArray |
ByteNdArray.write(DataBuffer<Byte> src) |
DoubleNdArray |
DoubleNdArray.write(DataBuffer<Double> src) |
FloatNdArray |
FloatNdArray.write(DataBuffer<Float> src) |
IntNdArray |
IntNdArray.write(DataBuffer<Integer> src) |
LongNdArray |
LongNdArray.write(DataBuffer<Long> src) |
ShortNdArray |
ShortNdArray.write(DataBuffer<Short> src) |
NdArray<T> |
NdArray.write(DataBuffer<T> src)
Write the content of this N-dimensional array from the source buffer.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DataBufferWindow<B extends DataBuffer<?>>
A mutable container for viewing part of a
DataBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BooleanDataBuffer
A
DataBuffer of booleans. |
interface |
ByteDataBuffer
A
DataBuffer of bytes. |
interface |
DoubleDataBuffer
A
DataBuffer of doubles. |
interface |
FloatDataBuffer
A
DataBuffer of floats. |
interface |
IntDataBuffer
A
DataBuffer of ints. |
interface |
LongDataBuffer
A
DataBuffer of longs. |
interface |
ShortDataBuffer
A
DataBuffer of shorts. |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer<T> |
DataBuffer.copyTo(DataBuffer<T> dst,
long size)
Write the references of the objects in the source array into this buffer.
|
default DataBuffer<T> |
DataBuffer.narrow(long size)
Creates a new buffer whose content is a shared subsequence of this buffer's content, whose
size is set to the given value.
|
static <T> DataBuffer<T> |
DataBuffers.of(T[] array,
boolean readOnly,
boolean makeCopy)
Create a buffer from an array of objects into a data buffer.
|
default DataBuffer<T> |
DataBuffer.offset(long index)
Creates a new buffer whose content is a shared subsequence of this buffer's content, starting
at the given index.
|
static <T> DataBuffer<T> |
DataBuffers.ofObjects(Class<T> type,
long size)
Creates a buffer of references to objects of type
clazz` that can store up to `size
values. |
static <T> DataBuffer<T> |
DataBuffers.ofObjects(T... values)
Create a buffer from an array of objects into a data buffer.
|
default DataBuffer<T> |
DataBuffer.read(T[] dst)
Read the references of the objects in this buffer into the destination array.
|
DataBuffer<T> |
DataBuffer.read(T[] dst,
int offset,
int length)
Read the references of the objects in this buffer into the destination array.
|
DataBuffer<T> |
DataBuffer.setObject(T value,
long index)
Writes the given value into this buffer at the given index.
|
DataBuffer<T> |
DataBuffer.slice(long index,
long size)
Creates a new buffer whose content is a shared subsequence of this buffer's content, starting
at the given index and of the given size.
|
default DataBuffer<T> |
DataBuffer.write(T[] src)
Write the references of the objects in the source array into this buffer.
|
DataBuffer<T> |
DataBuffer.write(T[] src,
int offset,
int length)
Bulk put method, using int arrays.
|
| Modifier and Type | Method and Description |
|---|---|
default DataBufferWindow<? extends DataBuffer<T>> |
DataBuffer.window(long size)
Creates a
DataBufferWindow that provides a partial view of this buffer. |
| Modifier and Type | Method and Description |
|---|---|
BooleanDataBuffer |
BooleanDataBuffer.copyTo(DataBuffer<Boolean> dst,
long size) |
ByteDataBuffer |
ByteDataBuffer.copyTo(DataBuffer<Byte> dst,
long size) |
DoubleDataBuffer |
DoubleDataBuffer.copyTo(DataBuffer<Double> dst,
long size) |
FloatDataBuffer |
FloatDataBuffer.copyTo(DataBuffer<Float> dst,
long size) |
IntDataBuffer |
IntDataBuffer.copyTo(DataBuffer<Integer> dst,
long size) |
LongDataBuffer |
LongDataBuffer.copyTo(DataBuffer<Long> dst,
long size) |
ShortDataBuffer |
ShortDataBuffer.copyTo(DataBuffer<Short> dst,
long size) |
DataBuffer<T> |
DataBuffer.copyTo(DataBuffer<T> dst,
long size)
Write the references of the objects in the source array into this buffer.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BooleanDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to booleans. |
interface |
ByteDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to bytes. |
interface |
DataLayout<S extends DataBuffer<?>,T>
Converts data stored in a buffer to a given type.
|
interface |
DoubleDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to doubles. |
interface |
FloatDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to floats. |
interface |
IntDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to ints. |
interface |
LongDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to longs. |
interface |
ShortDataLayout<S extends DataBuffer<?>>
A
DataLayout that converts data stored in a buffer to shorts. |
| Modifier and Type | Method and Description |
|---|---|
default DataBuffer<T> |
DataLayout.applyTo(S buffer)
Apply this layout to the provided buffer.
|
| Modifier and Type | Method and Description |
|---|---|
static DataLayout<DataBuffer<byte[]>,String> |
DataLayouts.ofStrings(Charset charset)
Creates a data layout for converting strings to/from byte sequences.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Validator.readToBufferArgs(NdArray<?> ndArray,
DataBuffer<?> dst) |
static void |
Validator.writeFromBufferArgs(NdArray<?> ndArray,
DataBuffer<?> src) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDataBufferWindow<B extends DataBuffer<?>> |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDataBuffer<T> |
| Modifier and Type | Method and Description |
|---|---|
protected <U extends DataBuffer<T>> |
AbstractDataBuffer.slowCopyTo(DataBuffer<T> dst,
long size) |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer<T> |
AbstractDataBuffer.copyTo(DataBuffer<T> dst,
long size) |
DataBuffer<T> |
AbstractDataBuffer.read(T[] dst,
int offset,
int length) |
DataBuffer<T> |
AbstractDataBuffer.write(T[] src,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer<T> |
AbstractDataBuffer.copyTo(DataBuffer<T> dst,
long size) |
static <T> void |
Validator.copyToArgs(DataBuffer<T> src,
DataBuffer<T> dst,
long size) |
static <T> void |
Validator.copyToArgs(DataBuffer<T> src,
DataBuffer<T> dst,
long size) |
static <T> void |
Validator.getArgs(DataBuffer<T> buffer,
long index) |
static <T> void |
Validator.narrowArgs(DataBuffer<T> buffer,
long size) |
static <T> void |
Validator.offsetArgs(DataBuffer<T> buffer,
long index) |
static <T> void |
Validator.readArgs(DataBuffer<T> buffer,
int arrayLength,
int offset,
int length) |
static <T> void |
Validator.setArgs(DataBuffer<T> buffer,
long index) |
static <T> void |
Validator.sliceArgs(DataBuffer<T> buffer,
long index,
long size) |
protected <U extends DataBuffer<T>> |
AbstractDataBuffer.slowCopyTo(DataBuffer<T> dst,
long size) |
protected boolean |
AbstractDataBuffer.slowEquals(DataBuffer<?> other) |
static <T> void |
Validator.writeArgs(DataBuffer<T> buffer,
int arrayLength,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
BooleanDataLayout<S> layout)
Creates an adapter that applies a boolean data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
ByteDataLayout<S> layout)
Creates an adapter that applies a byte data layout to the given buffer.
|
static <S extends DataBuffer<?>,T> |
DataBufferAdapterFactory.create(S buffer,
DataLayout<S,T> layout)
Creates an adapter that applies a data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
DoubleDataLayout<S> layout)
Creates an adapter that applies a double data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
FloatDataLayout<S> layout)
Creates an adapter that applies a float data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
IntDataLayout<S> layout)
Creates an adapter that applies a integer data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
LongDataLayout<S> layout)
Creates an adapter that applies a long data layout to the given buffer.
|
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 |
|---|---|
static <S extends DataBuffer<?>,T> |
DataBufferAdapterFactory.create(S buffer,
DataLayout<S,T> layout)
Creates an adapter that applies a data layout to the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
String |
StringLayout.readObject(DataBuffer<byte[]> buffer,
long index) |
void |
StringLayout.writeObject(DataBuffer<byte[]> buffer,
String value,
long index) |
| Modifier and Type | Method and Description |
|---|---|
static <T> DataBuffer<T> |
MiscDataBufferFactory.create(T[] array,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
protected DataBuffer<T> |
DenseNdArray.buffer() |
protected abstract DataBuffer<T> |
AbstractDenseNdArray.buffer() |
| Modifier and Type | Method and Description |
|---|---|
U |
AbstractDenseNdArray.read(DataBuffer<T> dst) |
static <T> NdArray<T> |
DenseNdArray.wrap(DataBuffer<T> buffer,
Shape shape) |
U |
AbstractDenseNdArray.write(DataBuffer<T> src) |
| Constructor and Description |
|---|
DenseNdArray(DataBuffer<T> buffer,
Shape shape) |
Copyright © 2015–2020. All rights reserved.