| Package | Description |
|---|---|
| org.nd4j.linalg.api.buffer | |
| org.nd4j.linalg.factory |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer.Type |
DoubleBuffer.dataType() |
DataBuffer.Type |
FloatBuffer.dataType() |
DataBuffer.Type |
IntBuffer.dataType() |
DataBuffer.Type |
DataBuffer.dataType()
The data type of the buffer
|
static DataBuffer.Type |
DataBuffer.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataBuffer.Type[] |
DataBuffer.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Field and Description |
|---|---|
protected DataBuffer.Type |
BaseNDArrayFactory.dtype |
static DataBuffer.Type |
Nd4j.dtype |
| Modifier and Type | Method and Description |
|---|---|
static DataBuffer.Type |
Nd4j.dataType()
Returns the data type used for the runtime
|
DataBuffer.Type |
BaseNDArrayFactory.dtype()
Returns the data type for this ndarray
|
DataBuffer.Type |
NDArrayFactory.dtype()
Returns the data type for this ndarray
|
| Modifier and Type | Method and Description |
|---|---|
INDArray |
BaseNDArrayFactory.create(int[] shape,
DataBuffer.Type dataType) |
static INDArray |
Nd4j.create(int[] shape,
DataBuffer.Type dataType) |
INDArray |
NDArrayFactory.create(int[] shape,
DataBuffer.Type dataType) |
static DataBuffer |
Nd4j.createBuffer(ByteBuffer buffer,
DataBuffer.Type type,
int length)
Creates a buffer of the specified type
and length with the given byte buffer.
|
static DataBuffer |
Nd4j.createBuffer(int[] shape,
DataBuffer.Type type)
Create a buffer equal of length prod(shape)
|
void |
BaseNDArrayFactory.setDType(DataBuffer.Type dtype)
Sets the data type
|
void |
NDArrayFactory.setDType(DataBuffer.Type dtype)
Sets the data type
|
| Constructor and Description |
|---|
BaseNDArrayFactory(DataBuffer.Type dtype,
char order) |
BaseNDArrayFactory(DataBuffer.Type dtype,
Character order)
Initialize with the given data type and ordering
The ndarray factory will use this for
|
Copyright © 2016. All Rights Reserved.