Modifier and Type | Method and Description |
---|---|
double |
Level1.asum(long N,
DataBuffer x,
int offsetX,
int incrX)
sum of magnitudes of all elements
|
void |
Level1.axpy(long N,
double alpha,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
computes a vector-scalar product and adds the result to a vector.
|
void |
Level1.copy(long N,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
copy a vector to another vector.
|
double |
Level1.dot(long N,
DataBuffer dx,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
Vector-vector dot product
|
static double[] |
BlasBufferUtil.getDoubleData(DataBuffer buf)
Returns the double data
for this buffer.
|
static float[] |
BlasBufferUtil.getFloatData(DataBuffer buf)
Returns the float data
for this buffer.
|
int |
Level1.iamax(long N,
DataBuffer x,
int offsetX,
int incrX)
Index of largest absolute value
|
Modifier and Type | Method and Description |
---|---|
double |
BaseLevel1.asum(long n,
DataBuffer x,
int offsetX,
int incrX) |
void |
BaseLevel1.axpy(long n,
double alpha,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
void |
BaseLevel1.copy(long n,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
copy a vector to another vector.
|
protected abstract double |
BaseLevel1.dasum(long N,
DataBuffer X,
int offsetX,
int incX) |
protected abstract void |
BaseLevel1.daxpy(long N,
double alpha,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
protected abstract void |
BaseLevel1.dcopy(long n,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
protected abstract double |
BaseLevel1.ddot(long N,
DataBuffer X,
int offsetX,
int incX,
DataBuffer Y,
int offsetY,
int incY) |
double |
BaseLevel1.dot(long n,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
protected abstract float |
BaseLevel1.hasum(long N,
DataBuffer X,
int offsetX,
int incX) |
protected abstract void |
BaseLevel1.haxpy(long N,
float alpha,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
protected abstract float |
BaseLevel1.hdot(long N,
DataBuffer X,
int offsetX,
int incX,
DataBuffer Y,
int offsetY,
int incY) |
int |
BaseLevel1.iamax(long n,
DataBuffer x,
int offsetX,
int incrX) |
protected abstract int |
BaseLevel1.idamax(long N,
DataBuffer X,
int offsetX,
int incX) |
protected abstract int |
BaseLevel1.isamax(long N,
DataBuffer X,
int offsetX,
int incX) |
protected abstract float |
BaseLevel1.sasum(long N,
DataBuffer X,
int offsetX,
int incX) |
protected abstract void |
BaseLevel1.saxpy(long N,
float alpha,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
protected abstract void |
BaseLevel1.scopy(long n,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY) |
protected abstract float |
BaseLevel1.sdot(long N,
DataBuffer X,
int offsetX,
int incX,
DataBuffer Y,
int offsetY,
int incY) |
Modifier and Type | Class and Description |
---|---|
class |
BaseDataBuffer |
Modifier and Type | Field and Description |
---|---|
protected DataBuffer |
BaseDataBuffer.originalBuffer |
protected DataBuffer |
BaseDataBuffer.wrappedDataBuffer |
Modifier and Type | Method and Description |
---|---|
abstract DataBuffer |
BaseDataBuffer.create(double[] data)
Create the data buffer
with respect to the given byte buffer
|
abstract DataBuffer |
BaseDataBuffer.create(float[] data)
Create the data buffer
with respect to the given byte buffer
|
abstract DataBuffer |
BaseDataBuffer.create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
protected abstract DataBuffer |
BaseDataBuffer.create(long length)
Create with length
|
DataBuffer |
BaseDataBuffer.dup() |
DataBuffer |
DataBuffer.dup()
Return a copy of this buffer
|
DataBuffer |
BaseDataBuffer.originalDataBuffer()
Original DataBuffer.
|
DataBuffer |
DataBuffer.originalDataBuffer()
Original DataBuffer.
|
abstract DataBuffer |
BaseDataBuffer.reallocate(long length) |
DataBuffer |
DataBuffer.reallocate(long length)
Reallocate the native memory of the buffer
|
DataBuffer |
BaseDataBuffer.underlyingDataBuffer() |
DataBuffer |
DataBuffer.underlyingDataBuffer()
Underlying buffer:
This is meant for a data buffer
to be a view of another data buffer
|
Modifier and Type | Method and Description |
---|---|
void |
BaseDataBuffer.assign(DataBuffer... buffers) |
void |
DataBuffer.assign(DataBuffer... buffers)
Assign the given data buffers to this buffer
|
void |
BaseDataBuffer.assign(DataBuffer data) |
void |
DataBuffer.assign(DataBuffer data)
Assign the contents of this buffer
to this buffer
|
void |
BaseDataBuffer.assign(long[] offsets,
long[] strides,
DataBuffer... buffers) |
void |
DataBuffer.assign(long[] offsets,
long[] strides,
DataBuffer... buffers)
Assign the given buffers to this buffer
based on the given offsets and strides.
|
void |
BaseDataBuffer.assign(long[] offsets,
long[] strides,
long n,
DataBuffer... buffers) |
void |
DataBuffer.assign(long[] offsets,
long[] strides,
long n,
DataBuffer... buffers)
Assign the given buffers to this buffer
based on the given offsets and strides.
|
void |
BaseDataBuffer.copyAtStride(DataBuffer buf,
long n,
long stride,
long yStride,
long offset,
long yOffset) |
void |
DataBuffer.copyAtStride(DataBuffer buf,
long n,
long stride,
long yStride,
long offset,
long yOffset)
Copies from
the given buffer
at the specified stride
for up to n elements
|
boolean |
BaseDataBuffer.sameUnderlyingData(DataBuffer buffer) |
boolean |
DataBuffer.sameUnderlyingData(DataBuffer buffer)
Returns true if the underlying data source
is the same for both buffers (referential equals)
|
Constructor and Description |
---|
BaseDataBuffer(DataBuffer underlyingBuffer,
long length,
long offset)
Meant for creating another view of a buffer
|
Modifier and Type | Method and Description |
---|---|
Object |
MemoryStrategy.alloc(DataBuffer buffer,
int stride,
int offset,
int length)
Allocate memory for the given buffer
|
Object |
MemoryStrategy.copyToHost(DataBuffer copy,
int offset)
Copy data to native or gpu
|
void |
MemoryStrategy.free(DataBuffer buffer,
int offset,
int length)
Free the buffer wrt the
allocation strategy
|
void |
MemoryStrategy.setData(DataBuffer buffer,
int offset) |
void |
MemoryStrategy.setData(DataBuffer buffer,
int offset,
int stride,
int length)
Set the data for the buffer
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
DataBufferFactory.create(ByteBuffer underlyingBuffer,
DataType type,
long length,
long offset)
Creates a DataBuffer from java.nio.ByteBuffer
|
DataBuffer |
DataBufferFactory.create(DataBuffer underlyingBuffer,
long offset,
long length)
Create a databuffer wrapping another one
this allows you to create a view of a buffer
with a different offset and length
backed by the same storage
|
DataBuffer |
DataBufferFactory.create(DataType dataType,
long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.create(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.DoublePointer doublePointer,
long length) |
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.FloatPointer floatPointer,
long length) |
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.IntPointer intPointer,
long length) |
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.Pointer pointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer opType,
and length of the buffer
|
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.Pointer pointer,
org.bytedeco.javacpp.Pointer specialPointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer) |
DataBuffer |
DataBufferFactory.createBFloat16(long length) |
DataBuffer |
DataBufferFactory.createBFloat16(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createBFloat16(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createBool(long length) |
DataBuffer |
DataBufferFactory.createBool(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createBool(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createByte(long length) |
DataBuffer |
DataBufferFactory.createByte(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createByte(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createDouble(double[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(double[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(double[] data,
boolean copy,
MemoryWorkspace workspace)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(double[] data,
MemoryWorkspace workspace)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(float[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(float[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(int[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long length)
Create a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long length,
boolean initialize)
Create a double data buffer, with optional initialization
|
DataBuffer |
DataBufferFactory.createDouble(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createDouble(long offset,
byte[] data,
int length)
Create a double buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
double[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
double[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
double[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createDouble(long offset,
float[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
float[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
int length)
Create a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createFloat(double[] data)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(double[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(float[] data)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(float[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(float[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(int[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createFloat(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long length)
Create a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long length,
boolean initialize)
Create a float data buffer, with optional initialization
|
DataBuffer |
DataBufferFactory.createFloat(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(long offset,
byte[] data,
int length)
Create a double buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
double[] data)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
double[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
float[] data)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
float[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(long offset,
int length)
Create a float data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createFloat(long offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createHalf(double[] data)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(double[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(float[] data)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(float[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(float[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(int[] data)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(int[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long length)
Creates half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long length,
boolean initialize)
Creates half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(long offset,
byte[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
double[] data)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
double[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
float[] data)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
float[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(long offset,
int length)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
int[] data)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createHalf(long offset,
int[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
DataBufferFactory.createInt(double[] data)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(double[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(float[] data)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(float[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(int[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createInt(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createInt(int[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createInt(int[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createInt(long length)
Create an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long[] data,
boolean copy)
Creates a int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long length,
boolean initialize)
Create an int data buffer, with optional initialization
|
DataBuffer |
DataBufferFactory.createInt(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createInt(long offset,
double[] data)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long offset,
double[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long offset,
float[] data)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long offset,
float[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long offset,
int length)
Create an int data buffer
|
DataBuffer |
DataBufferFactory.createInt(long offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createInt(long offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createLong(int[] data,
boolean copy)
Creates a long data buffer
|
DataBuffer |
DataBufferFactory.createLong(long length) |
DataBuffer |
DataBufferFactory.createLong(long[] data) |
DataBuffer |
DataBufferFactory.createLong(long[] data,
boolean copy) |
DataBuffer |
DataBufferFactory.createLong(long[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createLong(long length,
boolean initialize)
Create an int data buffer, with optional initialization
|
DataBuffer |
DataBufferFactory.createLong(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createSame(DataBuffer buffer,
boolean init)
This method will create new DataBuffer of the same dataType & same length
|
DataBuffer |
DataBufferFactory.createSame(DataBuffer buffer,
boolean init,
MemoryWorkspace workspace)
This method will create new DataBuffer of the same dataType & same length
|
DataBuffer |
DataBufferFactory.createShort(long length) |
DataBuffer |
DataBufferFactory.createShort(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createShort(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUByte(long length) |
DataBuffer |
DataBufferFactory.createUByte(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createUByte(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUInt(long length) |
DataBuffer |
DataBufferFactory.createUInt(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createUInt(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createULong(long length) |
DataBuffer |
DataBufferFactory.createULong(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createULong(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUShort(long length) |
DataBuffer |
DataBufferFactory.createUShort(long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.createUShort(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUtf8Buffer(byte[] data,
long product) |
Modifier and Type | Method and Description |
---|---|
Class<? extends DataBuffer> |
DataBufferFactory.doubleBufferClass() |
Class<? extends DataBuffer> |
DataBufferFactory.floatBufferClass() |
Class<? extends DataBuffer> |
DataBufferFactory.halfBufferClass() |
Class<? extends DataBuffer> |
DataBufferFactory.intBufferClass() |
Class<? extends DataBuffer> |
DataBufferFactory.longBufferClass() |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
DataBufferFactory.create(DataBuffer underlyingBuffer,
long offset,
long length)
Create a databuffer wrapping another one
this allows you to create a view of a buffer
with a different offset and length
backed by the same storage
|
DataBuffer |
DataBufferFactory.createSame(DataBuffer buffer,
boolean init)
This method will create new DataBuffer of the same dataType & same length
|
DataBuffer |
DataBufferFactory.createSame(DataBuffer buffer,
boolean init,
MemoryWorkspace workspace)
This method will create new DataBuffer of the same dataType & same length
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
AffinityManager.replicateToDevice(Integer deviceId,
DataBuffer buffer)
This method replicates given DataBuffer, and places it to target device.
|
DataBuffer |
BasicAffinityManager.replicateToDevice(Integer deviceId,
DataBuffer buffer)
This method replicates given DataBuffer, and places it to target device.
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
AffinityManager.replicateToDevice(Integer deviceId,
DataBuffer buffer)
This method replicates given DataBuffer, and places it to target device.
|
DataBuffer |
BasicAffinityManager.replicateToDevice(Integer deviceId,
DataBuffer buffer)
This method replicates given DataBuffer, and places it to target device.
|
void |
AffinityManager.tagLocation(DataBuffer buffer,
AffinityManager.Location location)
This method tags specific DataBuffer as "recent" on specified location
|
void |
BasicAffinityManager.tagLocation(DataBuffer buffer,
AffinityManager.Location location) |
void |
AffinityManager.touch(DataBuffer buffer)
Utility method, to associate INDArray with specific device (backend-specific)
|
Modifier and Type | Method and Description |
---|---|
void |
BasicMemoryManager.memcpy(DataBuffer dstBuffer,
DataBuffer srcBuffer) |
void |
MemoryManager.memcpy(DataBuffer dstBuffer,
DataBuffer srcBuffer)
This method does memcpy from source buffer to destination buffer
PLEASE NOTE: This method is NOT safe.
|
Modifier and Type | Field and Description |
---|---|
protected DataBuffer |
BaseNDArray.data |
protected DataBuffer |
BaseNDArrayProxy.data |
protected DataBuffer |
BaseNDArray.shapeInformation |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
BaseNDArray.data() |
DataBuffer |
INDArray.data()
Returns a linear double array representation of this ndarray
|
protected static DataBuffer |
BaseNDArray.internalCreateBuffer(double[] data) |
protected static DataBuffer |
BaseNDArray.internalCreateBuffer(double[] data,
long offset) |
protected static DataBuffer |
BaseNDArray.internalCreateBuffer(float[] data) |
protected static DataBuffer |
BaseNDArray.internalCreateBuffer(float[] data,
long offset) |
protected static DataBuffer |
BaseNDArray.internalCreateBuffer(int[] data) |
DataBuffer |
BaseNDArray.shapeInfoDataBuffer() |
DataBuffer |
INDArray.shapeInfoDataBuffer()
Shape info
|
protected DataBuffer |
BaseNDArray.shapeOf() |
protected DataBuffer |
BaseNDArray.strideOf() |
Modifier and Type | Method and Description |
---|---|
Pair<DataBuffer,long[]> |
BaseShapeInfoProvider.createShapeInformation(long[] shape,
char order,
DataType dataType)
This method creates shapeInformation buffer, based on shape & order being passed in
|
Pair<DataBuffer,long[]> |
ShapeInfoProvider.createShapeInformation(long[] shape,
char order,
DataType dataType)
This method creates long shapeInformation buffer, based on shape & order being passed in
|
Pair<DataBuffer,long[]> |
BaseShapeInfoProvider.createShapeInformation(long[] shape,
DataType dataType)
This method creates shapeInformation buffer, based on shape being passed in
|
Pair<DataBuffer,long[]> |
ShapeInfoProvider.createShapeInformation(long[] shape,
DataType dataType)
This method creates long shapeInformation buffer, based on shape being passed in
|
Pair<DataBuffer,long[]> |
BaseShapeInfoProvider.createShapeInformation(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dataType,
boolean empty) |
Pair<DataBuffer,long[]> |
ShapeInfoProvider.createShapeInformation(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dataType,
boolean empty)
This method creates long shapeInformation buffer, based on detailed shape info being passed in
|
Pair<DataBuffer,long[]> |
BaseShapeInfoProvider.createShapeInformation(long[] shape,
long[] stride,
long elementWiseStride,
char order,
long extras) |
Pair<DataBuffer,long[]> |
ShapeInfoProvider.createShapeInformation(long[] shape,
long[] stride,
long elementWiseStride,
char order,
long extras) |
Modifier and Type | Method and Description |
---|---|
protected INDArray |
BaseNDArray.create(DataBuffer buffer) |
protected INDArray |
BaseNDArray.create(DataBuffer data,
int[] shape,
int[] strides) |
protected INDArray |
BaseNDArray.create(DataBuffer data,
int[] newShape,
int[] newStrides,
long offset) |
protected INDArray |
BaseNDArray.create(DataBuffer data,
int[] newShape,
int[] newStrides,
long offset,
char ordering) |
protected INDArray |
BaseNDArray.create(DataBuffer data,
int[] shape,
long offset) |
protected INDArray |
BaseNDArray.create(DataBuffer data,
long[] newShape,
long[] newStrides,
long offset,
char ordering) |
protected int[] |
BaseNDArray.doPermuteSwap(DataBuffer shape,
int[] rearrange)
Deprecated.
|
void |
BaseNDArray.setData(DataBuffer data) |
void |
INDArray.setData(DataBuffer data)
Set the data for this ndarray.
|
protected abstract int |
BaseNDArray.stringBuffer(com.google.flatbuffers.FlatBufferBuilder builder,
DataBuffer buffer) |
Constructor and Description |
---|
BaseNDArray(DataBuffer buffer) |
BaseNDArray(DataBuffer floatBuffer,
char order) |
BaseNDArray(DataBuffer buffer,
DataType dataType,
long[] shape,
long[] stride,
long offset,
char ordering) |
BaseNDArray(DataBuffer data,
int[] shape) |
BaseNDArray(DataBuffer buffer,
int[] shape,
char ordering) |
BaseNDArray(DataBuffer buffer,
int[] shape,
int[] strides) |
BaseNDArray(DataBuffer data,
int[] shape,
int[] stride,
long offset) |
BaseNDArray(DataBuffer buffer,
int[] shape,
int[] stride,
long offset,
char ordering) |
BaseNDArray(DataBuffer buffer,
int[] shape,
long offset) |
BaseNDArray(DataBuffer buffer,
int[] shape,
long offset,
char ordering)
Constructor for stride and offset
|
BaseNDArray(DataBuffer data,
long[] shape) |
BaseNDArray(DataBuffer buffer,
long[] shape,
char ordering) |
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
char ordering,
DataType type) |
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
char ordering,
DataType type,
MemoryWorkspace workspace) |
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
long offset,
char ordering) |
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
long offset,
char ordering,
DataType dataType) |
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
long offset,
long ews,
char ordering) |
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
long offset,
long ews,
char ordering,
DataType dataType) |
BaseNDArray(int[] shape,
DataBuffer buffer)
Create with the specified shape and buffer
|
Modifier and Type | Field and Description |
---|---|
protected DataBuffer |
BaseOp.extraArgz |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
BaseOp.extraArgsDataBuff(DataType dtype) |
DataBuffer |
Op.extraArgsDataBuff(DataType bufferType)
Returns the extra args as a data buffer
|
Modifier and Type | Field and Description |
---|---|
protected List<DataBuffer> |
BaseAggregate.shapes |
Modifier and Type | Method and Description |
---|---|
List<DataBuffer> |
Aggregate.getShapes() |
List<DataBuffer> |
BaseAggregate.getShapes() |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
DefaultOpExecutioner.createConstantBuffer(double[] values,
DataType desiredType) |
DataBuffer |
OpExecutioner.createConstantBuffer(double[] values,
DataType desiredType) |
DataBuffer |
DefaultOpExecutioner.createConstantBuffer(float[] values,
DataType desiredType) |
DataBuffer |
OpExecutioner.createConstantBuffer(float[] values,
DataType desiredType) |
DataBuffer |
DefaultOpExecutioner.createConstantBuffer(int[] values,
DataType desiredType) |
DataBuffer |
OpExecutioner.createConstantBuffer(int[] values,
DataType desiredType) |
DataBuffer |
DefaultOpExecutioner.createConstantBuffer(long[] values,
DataType desiredType) |
DataBuffer |
OpExecutioner.createConstantBuffer(long[] values,
DataType desiredType)
This method returns constant buffer for the given jvm array
|
DataBuffer |
DefaultOpExecutioner.createShapeInfo(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dtype,
boolean empty) |
DataBuffer |
OpExecutioner.createShapeInfo(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dtype,
boolean empty)
This method returns shapeInfo DataBuffer
|
DataBuffer |
DefaultOpExecutioner.createShapeInfo(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dtype,
long extras) |
DataBuffer |
OpExecutioner.createShapeInfo(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dtype,
long extra) |
Modifier and Type | Method and Description |
---|---|
String |
DefaultOpExecutioner.getString(DataBuffer buffer,
long index) |
String |
OpExecutioner.getString(DataBuffer buffer,
long index)
This method extracts String from Utf8Buffer
|
long |
DefaultOpExecutioner.profilingConfigurableHookIn(Op op,
DataBuffer... tadBuffers) |
long |
DefaultOpExecutioner.profilingHookIn(Op op,
DataBuffer... tadBuffers)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DataBuffer |
Shape.createShapeInformation(long[] shape,
long[] stride,
long elementWiseStride,
char order,
DataType dataType,
boolean empty) |
static DataBuffer |
Shape.createShapeInformation(long[] shape,
long[] stride,
long elementWiseStride,
char order,
long extras) |
static DataBuffer |
Shape.createSparseInformation(int[] flags,
long[] sparseOffsets,
int[] hiddenDimensions,
int underlyingRank) |
static DataBuffer |
Shape.shapeOf(DataBuffer buffer)
Get the shape from
the given int buffer
|
static DataBuffer |
Shape.stride(DataBuffer buffer)
Get the shape from
the given int buffer
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Shape.contentEquals(int[] arr,
DataBuffer other)
Compare the contents of a buffer and
an array for equals
|
static boolean |
Shape.contentEquals(long[] arr,
DataBuffer other) |
static int |
Shape.elementWiseStride(DataBuffer buffer)
Get the element wise stride for the
shape info buffer
|
static int[] |
Shape.flags(DataBuffer buffer) |
static long |
Shape.getOffset(DataBuffer shapeInformation,
int[] indices)
Deprecated.
|
static long |
Shape.getOffset(DataBuffer shapeInformation,
int row,
int col)
Get the offset of the specified [row,col] for the 2d array
|
static long |
Shape.getOffset(DataBuffer shapeInformation,
int dim0,
int dim1,
int dim2)
Get the offset of the specified [dim0,dim1,dim2] for the 3d array
|
static long |
Shape.getOffset(DataBuffer shapeInformation,
int dim0,
int dim1,
int dim2,
int dim3)
Get the offset of the specified [dim0,dim1,dim2,dim3] for the 4d array
|
static long |
Shape.getOffset(DataBuffer shapeInformation,
long... indices) |
static long |
Shape.getOffsetUnsafe(DataBuffer shapeInformation,
int row,
int col)
Identical to
Shape.getOffset(DataBuffer, int, int) but without input validation on array rank |
static long |
Shape.getOffsetUnsafe(DataBuffer shapeInformation,
int dim0,
int dim1,
int dim2)
Identical to
Shape.getOffset(DataBuffer, int, int, int) but without input validation on array rank |
static long |
Shape.getOffsetUnsafe(DataBuffer shapeInformation,
int dim0,
int dim1,
int dim2,
int dim3) |
static int[] |
Shape.hiddenDimension(DataBuffer buffer) |
static boolean |
Shape.isMatrix(DataBuffer shapeInfo)
Returns whether the passed in shape is a matrix
|
static boolean |
Shape.isRowVectorShape(DataBuffer shapeInfo)
Returns true if the given shape is of length 1
or provided the shape length is 2:
element 0 is 1
|
static boolean |
Shape.isVector(DataBuffer shapeInfo)
Returns whether the given shape is a vector
|
static long |
Shape.length(DataBuffer buffer)
Gets the rank given the shape info buffer
|
static int |
Shape.offset(DataBuffer buffer)
Deprecated.
|
static char |
Shape.order(DataBuffer buffer)
Returns the order given the shape information
|
static int |
Shape.rank(DataBuffer buffer)
Gets the rank given the shape info buffer
|
static void |
Shape.setElementWiseStride(DataBuffer buffer,
int elementWiseStride)
Get the element wise stride for the
shape info buffer
|
static long[] |
Shape.shape(DataBuffer buffer)
Get array shape from the buffer, as an int[]
|
static DataBuffer |
Shape.shapeOf(DataBuffer buffer)
Get the shape from
the given int buffer
|
static int |
Shape.size(DataBuffer buffer,
int dimension)
Get the size of the specified dimension.
|
static int |
Shape.sizeUnsafe(DataBuffer buffer,
int dimension)
Get the size of the specified dimension.
|
static int[] |
Shape.sparseOffsets(DataBuffer buffer) |
static DataBuffer |
Shape.stride(DataBuffer buffer)
Get the shape from
the given int buffer
|
static int |
Shape.stride(DataBuffer buffer,
int dimension)
Get the stride of the specified dimension
|
static long[] |
Shape.strideArr(DataBuffer buffer)
Get array shape from the buffer, as an int[]
|
static int |
Shape.strideUnsafe(DataBuffer buffer,
int dimension,
int rank)
Get the stride of the specified dimension, without any input validation
|
static String |
Shape.toString(DataBuffer buffer)
To String for an int buffer
|
static int |
Shape.underlyingRank(DataBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
ConstantHandler.getConstantBuffer(boolean[] array,
DataType dataType)
This method returns DataBuffer with
constant equal to input array.
|
DataBuffer |
ConstantHandler.getConstantBuffer(double[] array,
DataType dataType)
This method returns DataBuffer with contant equal to input array.
|
DataBuffer |
ConstantHandler.getConstantBuffer(float[] array,
DataType dataType)
This method returns DataBuffer with contant equal to input array.
|
DataBuffer |
ConstantHandler.getConstantBuffer(int[] array,
DataType dataType) |
DataBuffer |
ConstantHandler.getConstantBuffer(long[] array,
DataType dataType)
This method returns DataBuffer with
constant equal to input array.
|
DataBuffer |
BasicConstantHandler.relocateConstantSpace(DataBuffer dataBuffer) |
DataBuffer |
ConstantHandler.relocateConstantSpace(DataBuffer dataBuffer)
PLEASE NOTE: This method implementation is hardware-dependant.
|
Modifier and Type | Method and Description |
---|---|
Pair<DataBuffer,DataBuffer> |
TADManager.getTADOnlyShapeInfo(INDArray array,
int... dimension)
This method returns TAD shapeInfo and all offsets
for specified tensor and dimensions.
|
Pair<DataBuffer,DataBuffer> |
TADManager.getTADOnlyShapeInfo(INDArray array,
int... dimension)
This method returns TAD shapeInfo and all offsets
for specified tensor and dimensions.
|
Modifier and Type | Method and Description |
---|---|
static long[] |
TadDescriptor.dataBufferToArray(DataBuffer buffer)
Obtain the values from the shape buffer
for the array
|
long |
BasicConstantHandler.moveToConstantSpace(DataBuffer dataBuffer) |
long |
ConstantHandler.moveToConstantSpace(DataBuffer dataBuffer)
If specific hardware supports dedicated constant memory,
this method forces DataBuffer passed in to be moved
to that constant memory.
|
DataBuffer |
BasicConstantHandler.relocateConstantSpace(DataBuffer dataBuffer) |
DataBuffer |
ConstantHandler.relocateConstantSpace(DataBuffer dataBuffer)
PLEASE NOTE: This method implementation is hardware-dependant.
|
Modifier and Type | Class and Description |
---|---|
class |
CompressedDataBuffer |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
BasicNDArrayCompressor.compress(DataBuffer buffer)
Compress the given data buffer
given the default compression algorithm
|
DataBuffer |
NDArrayCompressor.compress(DataBuffer buffer) |
DataBuffer |
BasicNDArrayCompressor.compress(DataBuffer buffer,
String algorithm)
Compress the data buffer
given a specified algorithm
|
DataBuffer |
CompressedDataBuffer.create(double[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
CompressedDataBuffer.create(float[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
CompressedDataBuffer.create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
protected DataBuffer |
CompressedDataBuffer.create(long length)
Create with length
|
DataBuffer |
BasicNDArrayCompressor.decompress(DataBuffer buffer,
DataType targetType)
Decompress the given databuffer
|
DataBuffer |
NDArrayCompressor.decompress(DataBuffer buffer,
DataType targetType)
Return a compressed databuffer
|
DataBuffer |
CompressedDataBuffer.dup() |
static DataBuffer |
CompressedDataBuffer.readUnknown(DataInputStream s,
DataBuffer.AllocationMode allocMode,
long length,
DataType type)
Drop-in replacement wrapper for BaseDataBuffer.read() method, aware of CompressedDataBuffer
|
DataBuffer |
CompressedDataBuffer.reallocate(long length) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
BasicNDArrayCompressor.compress(DataBuffer buffer)
Compress the given data buffer
given the default compression algorithm
|
DataBuffer |
NDArrayCompressor.compress(DataBuffer buffer) |
DataBuffer |
BasicNDArrayCompressor.compress(DataBuffer buffer,
String algorithm)
Compress the data buffer
given a specified algorithm
|
DataBuffer |
BasicNDArrayCompressor.decompress(DataBuffer buffer,
DataType targetType)
Decompress the given databuffer
|
DataBuffer |
NDArrayCompressor.decompress(DataBuffer buffer,
DataType targetType)
Return a compressed databuffer
|
Constructor and Description |
---|
CompressionDescriptor(DataBuffer buffer)
Create a compression descriptor from the given
data buffer elements
|
CompressionDescriptor(DataBuffer buffer,
NDArrayCompressor compressor)
Initialize a compression descriptor
based on the given data buffer (for the sizes)
and the compressor to get the opType
|
CompressionDescriptor(DataBuffer buffer,
String algorithm)
Initialize a compression descriptor
based on the given algorithm and data buffer
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
NDArrayFactory.convertDataEx(DataTypeEx typeSrc,
DataBuffer source,
DataTypeEx typeDst) |
static DataBuffer |
Nd4j.createBuffer(byte[] data,
int length,
long offset)
Create a buffer based on the data opType
|
static DataBuffer |
Nd4j.createBuffer(ByteBuffer buffer,
DataType type,
int length)
Creates a buffer of the specified opType
and length with the given byte buffer.
|
static DataBuffer |
Nd4j.createBuffer(ByteBuffer buffer,
DataType type,
int length,
long offset)
Creates a buffer of the specified opType and length with the given byte buffer.
|
static DataBuffer |
Nd4j.createBuffer(DataBuffer underlyingBuffer,
long offset,
long length)
Create a view of a data buffer
Leverages the underlying storage of the buffer with a new view
|
static DataBuffer |
Nd4j.createBuffer(DataType dataType,
long length,
boolean initialize)
Create a data buffer based on datatype.
|
static DataBuffer |
Nd4j.createBuffer(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace)
Create a data buffer based on datatype, workspace.
|
static DataBuffer |
Nd4j.createBuffer(double[] data)
|
static DataBuffer |
Nd4j.createBuffer(double[] data,
long offset)
Create a buffer based on the data opType
|
static DataBuffer |
Nd4j.createBuffer(float[] data)
Create a buffer based on the data opType
|
static DataBuffer |
Nd4j.createBuffer(float[] data,
long offset)
Create a buffer based on the data opType
|
static DataBuffer |
Nd4j.createBuffer(int[] data)
Create a buffer equal of length prod(shape)
|
static DataBuffer |
Nd4j.createBuffer(@NonNull int[] shape,
@NonNull DataType type)
Create a buffer equal of length prod(shape)
|
static DataBuffer |
Nd4j.createBuffer(int[] shape,
DataType type,
long offset)
Create a buffer equal of length prod(shape)
|
static DataBuffer |
Nd4j.createBuffer(int length,
long offset)
Creates a buffer of the specified length based on the data opType
|
static DataBuffer |
Nd4j.createBuffer(long length)
Creates a buffer of the specified length based on the data opType
|
static DataBuffer |
Nd4j.createBuffer(long[] data)
Create a buffer equal of length prod(shape)
|
static DataBuffer |
Nd4j.createBuffer(@NonNull long[] shape,
@NonNull DataType type)
|
static DataBuffer |
Nd4j.createBuffer(long length,
boolean initialize)
See {@link #createBuffer(DataType dataType, long length, boolean initialize) with default datatype.
|
static DataBuffer |
Nd4j.createBuffer(org.bytedeco.javacpp.Pointer pointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer
based on a pointer
with the given opType and length
|
static DataBuffer |
Nd4j.createBuffer(@NonNull org.bytedeco.javacpp.Pointer pointer,
long length,
@NonNull DataType dataType)
Creates a buffer of the specified type and length with the given pointer.
|
static DataBuffer |
Nd4j.createBuffer(@NonNull org.bytedeco.javacpp.Pointer pointer,
@NonNull org.bytedeco.javacpp.Pointer devicePointer,
long length,
@NonNull DataType dataType)
Creates a buffer of the specified type and length with the given pointer at the specified device.
|
static DataBuffer |
Nd4j.createBufferDetached(double[] data)
|
static DataBuffer |
Nd4j.createBufferDetached(float[] data)
Create a buffer based on underlying array.
|
static DataBuffer |
Nd4j.createBufferDetached(int[] data)
Create a buffer equal of length prod(shape).
|
static DataBuffer |
Nd4j.createBufferDetached(int[] shape,
DataType type)
Create a buffer equal of length prod(shape).
|
static DataBuffer |
Nd4j.createBufferDetached(long[] data)
Create a buffer equal of length prod(shape).
|
static DataBuffer |
Nd4j.createBufferDetached(long[] shape,
DataType type)
|
static DataBuffer |
Nd4j.createTypedBuffer(boolean[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBuffer(byte[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBuffer(double[] data,
DataType dataType)
Create a buffer based on the data of the underlying java array with the specified type..
|
static DataBuffer |
Nd4j.createTypedBuffer(double[] data,
DataType dataType,
MemoryWorkspace workspace)
Create a buffer based on the data of the underlying java array, specified type and workspace
|
static DataBuffer |
Nd4j.createTypedBuffer(float[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBuffer(float[] data,
DataType dataType,
MemoryWorkspace workspace)
|
static DataBuffer |
Nd4j.createTypedBuffer(int[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBuffer(long[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBuffer(short[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBufferDetached(boolean[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBufferDetached(byte[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBufferDetached(double[] data,
DataType dataType)
Create am uninitialized buffer based on the data of the underlying java array and specified type.
|
static DataBuffer |
Nd4j.createTypedBufferDetached(float[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBufferDetached(int[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBufferDetached(long[] data,
DataType dataType)
|
static DataBuffer |
Nd4j.createTypedBufferDetached(short[] data,
DataType dataType)
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
NDArrayFactory.convertDataEx(DataTypeEx typeSrc,
DataBuffer source,
DataTypeEx typeDst) |
void |
NDArrayFactory.convertDataEx(DataTypeEx typeSrc,
DataBuffer source,
DataTypeEx typeDst,
DataBuffer target) |
void |
NDArrayFactory.convertDataEx(DataTypeEx typeSrc,
org.bytedeco.javacpp.Pointer source,
DataTypeEx typeDst,
DataBuffer buffer) |
static INDArray |
Nd4j.create(DataBuffer buffer)
Create an array based on the data buffer.
|
INDArray |
NDArrayFactory.create(DataBuffer data)
Creates a row vector with the data
|
static INDArray |
Nd4j.create(DataBuffer data,
int... shape)
Create an array based on the data buffer with given shape.
|
INDArray |
NDArrayFactory.create(DataBuffer data,
int[] shape)
Create an ndrray with the specified shape
|
INDArray |
BaseNDArrayFactory.create(DataBuffer buffer,
int[] shape,
int[] stride,
char order,
long offset) |
INDArray |
NDArrayFactory.create(DataBuffer buffer,
int[] shape,
int[] stride,
char order,
long offset) |
static INDArray |
Nd4j.create(DataBuffer data,
int[] shape,
int[] strides,
long offset)
Create an array based on the data buffer with given shape, stride and offset.
|
INDArray |
NDArrayFactory.create(DataBuffer data,
int[] shape,
int[] stride,
long offset)
Creates an ndarray with the specified shape
|
static INDArray |
Nd4j.create(DataBuffer data,
int[] newShape,
int[] newStride,
long offset,
char ordering)
|
INDArray |
NDArrayFactory.create(DataBuffer data,
int[] newShape,
int[] newStride,
long offset,
char ordering) |
static INDArray |
Nd4j.create(DataBuffer data,
int[] shape,
long offset)
|
INDArray |
NDArrayFactory.create(DataBuffer buffer,
int[] shape,
long offset) |
static INDArray |
Nd4j.create(DataBuffer data,
long... shape)
|
INDArray |
NDArrayFactory.create(DataBuffer data,
long[] shape) |
static INDArray |
Nd4j.create(DataBuffer data,
long[] shape,
long[] strides,
long offset)
|
INDArray |
NDArrayFactory.create(DataBuffer data,
long[] shape,
long[] stride,
long offset) |
static INDArray |
Nd4j.create(DataBuffer data,
long[] newShape,
long[] newStride,
long offset,
char ordering)
|
INDArray |
NDArrayFactory.create(DataBuffer data,
long[] newShape,
long[] newStride,
long offset,
char ordering) |
static INDArray |
Nd4j.create(DataBuffer data,
long[] newShape,
long[] newStride,
long offset,
char ordering,
DataType dataType)
Create an array based on the data buffer with given shape, stride, offset and data type.
|
INDArray |
NDArrayFactory.create(DataBuffer data,
long[] newShape,
long[] newStride,
long offset,
char ordering,
DataType dataType) |
static INDArray |
Nd4j.create(DataBuffer data,
long[] newShape,
long[] newStride,
long offset,
long ews,
char ordering)
Create an array based on the data buffer with given shape, stride and offset.
|
INDArray |
NDArrayFactory.create(DataBuffer data,
long[] newShape,
long[] newStride,
long offset,
long ews,
char ordering) |
INDArray |
NDArrayFactory.create(DataBuffer data,
long rows,
long columns,
int[] stride,
long offset)
Creates an ndarray with the specified shape
|
INDArray |
NDArrayFactory.create(int[] shape,
DataBuffer buffer)
Create an ndarray with the given shape
and data
|
static INDArray |
Nd4j.createArrayFromShapeBuffer(DataBuffer data,
DataBuffer shapeInfo)
Create array based in data buffer and shape info,
|
static INDArray |
Nd4j.createArrayFromShapeBuffer(DataBuffer data,
Pair<DataBuffer,long[]> shapeInfo)
Create array based in data buffer and shape info,
|
static DataBuffer |
Nd4j.createBuffer(DataBuffer underlyingBuffer,
long offset,
long length)
Create a view of a data buffer
Leverages the underlying storage of the buffer with a new view
|
Modifier and Type | Method and Description |
---|---|
static INDArray |
Nd4j.createArrayFromShapeBuffer(DataBuffer data,
Pair<DataBuffer,long[]> shapeInfo)
Create array based in data buffer and shape info,
|
Modifier and Type | Method and Description |
---|---|
void |
OpProfiler.processOpCall(Op op,
DataBuffer... tadBuffers) |
OpProfiler.PenaltyCause[] |
OpProfiler.processTADOperands(DataBuffer... tadBuffers) |
Modifier and Type | Method and Description |
---|---|
static DataBuffer |
BinarySerde.readShapeFromDisk(File readFrom)
This method returns shape databuffer from saved earlier file
|
Copyright © 2021. All rights reserved.