Uses of Interface
org.nd4j.linalg.api.buffer.DataBuffer
-
-
Uses of DataBuffer in org.nd4j.linalg.api.blas
Methods in org.nd4j.linalg.api.blas with parameters of type DataBuffer Modifier and Type Method Description doubleLevel1. asum(long N, DataBuffer x, int offsetX, int incrX)sum of magnitudes of all elementsvoidLevel1. 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.voidLevel1. copy(long N, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)copy a vector to another vector.doubleLevel1. dot(long N, DataBuffer dx, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)Vector-vector dot productstatic 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.intLevel1. iamax(long N, DataBuffer x, int offsetX, int incrX)Index of largest absolute value -
Uses of DataBuffer in org.nd4j.linalg.api.blas.impl
Methods in org.nd4j.linalg.api.blas.impl with parameters of type DataBuffer Modifier and Type Method Description doubleBaseLevel1. asum(long n, DataBuffer x, int offsetX, int incrX)voidBaseLevel1. axpy(long n, double alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)voidBaseLevel1. copy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)copy a vector to another vector.protected abstract doubleBaseLevel1. dasum(long N, DataBuffer X, int offsetX, int incX)protected abstract voidBaseLevel1. daxpy(long N, double alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)protected abstract voidBaseLevel1. dcopy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)protected abstract doubleBaseLevel1. ddot(long N, DataBuffer X, int offsetX, int incX, DataBuffer Y, int offsetY, int incY)doubleBaseLevel1. dot(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)protected abstract floatBaseLevel1. hasum(long N, DataBuffer X, int offsetX, int incX)protected abstract voidBaseLevel1. haxpy(long N, float alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)protected abstract floatBaseLevel1. hdot(long N, DataBuffer X, int offsetX, int incX, DataBuffer Y, int offsetY, int incY)intBaseLevel1. iamax(long n, DataBuffer x, int offsetX, int incrX)protected abstract intBaseLevel1. idamax(long N, DataBuffer X, int offsetX, int incX)protected abstract intBaseLevel1. isamax(long N, DataBuffer X, int offsetX, int incX)protected abstract floatBaseLevel1. sasum(long N, DataBuffer X, int offsetX, int incX)protected abstract voidBaseLevel1. saxpy(long N, float alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)protected abstract voidBaseLevel1. scopy(long n, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)protected abstract floatBaseLevel1. sdot(long N, DataBuffer X, int offsetX, int incX, DataBuffer Y, int offsetY, int incY) -
Uses of DataBuffer in org.nd4j.linalg.api.buffer
Classes in org.nd4j.linalg.api.buffer that implement DataBuffer Modifier and Type Class Description classBaseDataBufferFields in org.nd4j.linalg.api.buffer declared as DataBuffer Modifier and Type Field Description protected DataBufferBaseDataBuffer. originalBufferprotected DataBufferBaseDataBuffer. wrappedDataBufferMethods in org.nd4j.linalg.api.buffer that return DataBuffer Modifier and Type Method Description abstract DataBufferBaseDataBuffer. create(double[] data)Create the data buffer with respect to the given byte bufferabstract DataBufferBaseDataBuffer. create(float[] data)Create the data buffer with respect to the given byte bufferabstract DataBufferBaseDataBuffer. create(int[] data)Create the data buffer with respect to the given byte bufferprotected abstract DataBufferBaseDataBuffer. create(long length)Create with lengthDataBufferBaseDataBuffer. dup()DataBufferDataBuffer. dup()Return a copy of this bufferDataBufferBaseDataBuffer. originalDataBuffer()Original DataBuffer.DataBufferDataBuffer. originalDataBuffer()Original DataBuffer.abstract DataBufferBaseDataBuffer. reallocate(long length)DataBufferDataBuffer. reallocate(long length)Reallocate the native memory of the bufferDataBufferBaseDataBuffer. underlyingDataBuffer()DataBufferDataBuffer. underlyingDataBuffer()Underlying buffer: This is meant for a data buffer to be a view of another data bufferMethods in org.nd4j.linalg.api.buffer with parameters of type DataBuffer Modifier and Type Method Description voidBaseDataBuffer. assign(long[] offsets, long[] strides, long n, DataBuffer... buffers)voidBaseDataBuffer. assign(long[] offsets, long[] strides, DataBuffer... buffers)voidBaseDataBuffer. assign(DataBuffer data)voidBaseDataBuffer. assign(DataBuffer... buffers)voidDataBuffer. assign(long[] offsets, long[] strides, long n, DataBuffer... buffers)Assign the given buffers to this buffer based on the given offsets and strides.voidDataBuffer. assign(long[] offsets, long[] strides, DataBuffer... buffers)Assign the given buffers to this buffer based on the given offsets and strides.voidDataBuffer. assign(DataBuffer data)Assign the contents of this buffer to this buffervoidDataBuffer. assign(DataBuffer... buffers)Assign the given data buffers to this buffervoidBaseDataBuffer. copyAtStride(DataBuffer buf, long n, long stride, long yStride, long offset, long yOffset)voidDataBuffer. 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 elementsbooleanBaseDataBuffer. sameUnderlyingData(DataBuffer buffer)booleanDataBuffer. sameUnderlyingData(DataBuffer buffer)Returns true if the underlying data source is the same for both buffers (referential equals)Constructors in org.nd4j.linalg.api.buffer with parameters of type DataBuffer Constructor Description BaseDataBuffer(DataBuffer underlyingBuffer, long length, long offset)Meant for creating another view of a buffer -
Uses of DataBuffer in org.nd4j.linalg.api.buffer.allocation
Methods in org.nd4j.linalg.api.buffer.allocation with parameters of type DataBuffer Modifier and Type Method Description ObjectMemoryStrategy. alloc(DataBuffer buffer, int stride, int offset, int length)Allocate memory for the given bufferObjectMemoryStrategy. copyToHost(DataBuffer copy, int offset)Copy data to native or gpuvoidMemoryStrategy. free(DataBuffer buffer, int offset, int length)Free the buffer wrt the allocation strategyvoidMemoryStrategy. setData(DataBuffer buffer, int offset)voidMemoryStrategy. setData(DataBuffer buffer, int offset, int stride, int length)Set the data for the buffer -
Uses of DataBuffer in org.nd4j.linalg.api.buffer.factory
Methods in org.nd4j.linalg.api.buffer.factory that return DataBuffer Modifier and Type Method Description DataBufferDataBufferFactory. create(ByteBuffer underlyingBuffer, DataType type, long length, long offset)Creates a DataBuffer from java.nio.ByteBufferDataBufferDataBufferFactory. create(org.bytedeco.javacpp.DoublePointer doublePointer, long length)DataBufferDataBufferFactory. create(org.bytedeco.javacpp.FloatPointer floatPointer, long length)DataBufferDataBufferFactory. create(org.bytedeco.javacpp.IntPointer intPointer, long length)DataBufferDataBufferFactory. create(org.bytedeco.javacpp.Pointer pointer, org.bytedeco.javacpp.Pointer specialPointer, DataType type, long length, org.bytedeco.javacpp.indexer.Indexer indexer)DataBufferDataBufferFactory. 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 bufferDataBufferDataBufferFactory. 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 storageDataBufferDataBufferFactory. create(DataType dataType, long length, boolean initialize)DataBufferDataBufferFactory. create(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createBFloat16(long length)DataBufferDataBufferFactory. createBFloat16(long length, boolean initialize)DataBufferDataBufferFactory. createBFloat16(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createBool(long length)DataBufferDataBufferFactory. createBool(long length, boolean initialize)DataBufferDataBufferFactory. createBool(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createByte(long length)DataBufferDataBufferFactory. createByte(long length, boolean initialize)DataBufferDataBufferFactory. createByte(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createDouble(double[] data)Creates a double data bufferDataBufferDataBufferFactory. createDouble(double[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createDouble(double[] data, boolean copy, MemoryWorkspace workspace)Creates a double data bufferDataBufferDataBufferFactory. createDouble(double[] data, MemoryWorkspace workspace)Creates a double data bufferDataBufferDataBufferFactory. createDouble(float[] data)Creates a double data bufferDataBufferDataBufferFactory. createDouble(float[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createDouble(int[] data)Creates a double data bufferDataBufferDataBufferFactory. createDouble(int[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long length)Create a double data bufferDataBufferDataBufferFactory. createDouble(long[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long length, boolean initialize)Create a double data buffer, with optional initializationDataBufferDataBufferFactory. createDouble(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createDouble(long offset, byte[] data, int length)Create a double bufferDataBufferDataBufferFactory. createDouble(long offset, double[] data)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long offset, double[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long offset, double[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createDouble(long offset, float[] data)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long offset, float[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long offset, int length)Create a double data bufferDataBufferDataBufferFactory. createDouble(long offset, int[] data)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long offset, int[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createFloat(double[] data)Creates a float data bufferDataBufferDataBufferFactory. createFloat(double[] data, boolean copy)Creates a float data bufferDataBufferDataBufferFactory. createFloat(float[] data)Creates a float data bufferDataBufferDataBufferFactory. createFloat(float[] data, boolean copy)Creates a float data bufferDataBufferDataBufferFactory. createFloat(float[] data, boolean copy, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(int[] data)Creates a double data bufferDataBufferDataBufferFactory. createFloat(int[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createFloat(long length)Create a float data bufferDataBufferDataBufferFactory. createFloat(long[] data, boolean copy)Creates a float data bufferDataBufferDataBufferFactory. createFloat(long length, boolean initialize)Create a float data buffer, with optional initializationDataBufferDataBufferFactory. createFloat(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(long offset, byte[] data, int length)Create a double bufferDataBufferDataBufferFactory. createFloat(long offset, double[] data)Creates a float data bufferDataBufferDataBufferFactory. createFloat(long offset, double[] data, boolean copy)Creates a float data bufferDataBufferDataBufferFactory. createFloat(long offset, float[] data)Creates a float data bufferDataBufferDataBufferFactory. createFloat(long offset, float[] data, boolean copy)Creates a float data bufferDataBufferDataBufferFactory. createFloat(long offset, float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(long offset, int length)Create a float data bufferDataBufferDataBufferFactory. createFloat(long offset, int[] data)Creates a double data bufferDataBufferDataBufferFactory. createFloat(long offset, int[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createHalf(double[] data)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(double[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(float[] data)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(float[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(float[] data, boolean copy, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(int[] data)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(int[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long length)Creates half-precision data bufferDataBufferDataBufferFactory. createHalf(long length, boolean initialize)Creates half-precision data bufferDataBufferDataBufferFactory. createHalf(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(long offset, byte[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, double[] data)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, double[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, float[] data)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, float[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(long offset, int length)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, int[] data)Creates a half-precision data bufferDataBufferDataBufferFactory. createHalf(long offset, int[] data, boolean copy)Creates a half-precision data bufferDataBufferDataBufferFactory. createInt(double[] data)Creates an int data bufferDataBufferDataBufferFactory. createInt(double[] data, boolean copy)Creates an int data bufferDataBufferDataBufferFactory. createInt(float[] data)Creates an int data bufferDataBufferDataBufferFactory. createInt(float[] data, boolean copy)Creates an int data bufferDataBufferDataBufferFactory. createInt(int[] data)Creates a double data bufferDataBufferDataBufferFactory. createInt(int[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createInt(int[] data, boolean copy, MemoryWorkspace workspace)DataBufferDataBufferFactory. createInt(int[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createInt(long length)Create an int data bufferDataBufferDataBufferFactory. createInt(long[] data, boolean copy)Creates a int data bufferDataBufferDataBufferFactory. createInt(long length, boolean initialize)Create an int data buffer, with optional initializationDataBufferDataBufferFactory. createInt(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createInt(long offset, double[] data)Creates an int data bufferDataBufferDataBufferFactory. createInt(long offset, double[] data, boolean copy)Creates an int data bufferDataBufferDataBufferFactory. createInt(long offset, float[] data)Creates an int data bufferDataBufferDataBufferFactory. createInt(long offset, float[] data, boolean copy)Creates an int data bufferDataBufferDataBufferFactory. createInt(long offset, int length)Create an int data bufferDataBufferDataBufferFactory. createInt(long offset, int[] data)Creates a double data bufferDataBufferDataBufferFactory. createInt(long offset, int[] data, boolean copy)Creates a double data bufferDataBufferDataBufferFactory. createLong(int[] data, boolean copy)Creates a long data bufferDataBufferDataBufferFactory. createLong(long length)DataBufferDataBufferFactory. createLong(long[] data)DataBufferDataBufferFactory. createLong(long[] data, boolean copy)DataBufferDataBufferFactory. createLong(long[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createLong(long length, boolean initialize)Create an int data buffer, with optional initializationDataBufferDataBufferFactory. createLong(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createSame(DataBuffer buffer, boolean init)This method will create new DataBuffer of the same dataType & same lengthDataBufferDataBufferFactory. createSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)This method will create new DataBuffer of the same dataType & same lengthDataBufferDataBufferFactory. createShort(long length)DataBufferDataBufferFactory. createShort(long length, boolean initialize)DataBufferDataBufferFactory. createShort(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUByte(long length)DataBufferDataBufferFactory. createUByte(long length, boolean initialize)DataBufferDataBufferFactory. createUByte(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUInt(long length)DataBufferDataBufferFactory. createUInt(long length, boolean initialize)DataBufferDataBufferFactory. createUInt(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createULong(long length)DataBufferDataBufferFactory. createULong(long length, boolean initialize)DataBufferDataBufferFactory. createULong(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUShort(long length)DataBufferDataBufferFactory. createUShort(long length, boolean initialize)DataBufferDataBufferFactory. createUShort(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUtf8Buffer(byte[] data, long product)Methods in org.nd4j.linalg.api.buffer.factory that return types with arguments of type DataBuffer Modifier and Type Method 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()Methods in org.nd4j.linalg.api.buffer.factory with parameters of type DataBuffer Modifier and Type Method Description DataBufferDataBufferFactory. 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 storageDataBufferDataBufferFactory. createSame(DataBuffer buffer, boolean init)This method will create new DataBuffer of the same dataType & same lengthDataBufferDataBufferFactory. createSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)This method will create new DataBuffer of the same dataType & same length -
Uses of DataBuffer in org.nd4j.linalg.api.concurrency
Methods in org.nd4j.linalg.api.concurrency that return DataBuffer Modifier and Type Method Description DataBufferAffinityManager. replicateToDevice(Integer deviceId, DataBuffer buffer)This method replicates given DataBuffer, and places it to target device.DataBufferBasicAffinityManager. replicateToDevice(Integer deviceId, DataBuffer buffer)This method replicates given DataBuffer, and places it to target device.Methods in org.nd4j.linalg.api.concurrency with parameters of type DataBuffer Modifier and Type Method Description DataBufferAffinityManager. replicateToDevice(Integer deviceId, DataBuffer buffer)This method replicates given DataBuffer, and places it to target device.DataBufferBasicAffinityManager. replicateToDevice(Integer deviceId, DataBuffer buffer)This method replicates given DataBuffer, and places it to target device.voidAffinityManager. tagLocation(DataBuffer buffer, AffinityManager.Location location)This method tags specific DataBuffer as "recent" on specified locationvoidBasicAffinityManager. tagLocation(DataBuffer buffer, AffinityManager.Location location)voidAffinityManager. touch(DataBuffer buffer)Utility method, to associate INDArray with specific device (backend-specific) -
Uses of DataBuffer in org.nd4j.linalg.api.memory
Methods in org.nd4j.linalg.api.memory with parameters of type DataBuffer Modifier and Type Method Description voidBasicMemoryManager. memcpy(DataBuffer dstBuffer, DataBuffer srcBuffer)voidMemoryManager. memcpy(DataBuffer dstBuffer, DataBuffer srcBuffer)This method does memcpy from source buffer to destination buffer PLEASE NOTE: This method is NOT safe. -
Uses of DataBuffer in org.nd4j.linalg.api.ndarray
Fields in org.nd4j.linalg.api.ndarray declared as DataBuffer Modifier and Type Field Description protected DataBufferBaseNDArray. dataprotected DataBufferBaseNDArrayProxy. dataprotected DataBufferBaseNDArray. shapeInformationMethods in org.nd4j.linalg.api.ndarray that return DataBuffer Modifier and Type Method Description DataBufferBaseNDArray. data()DataBufferINDArray. data()Returns a linear double array representation of this ndarrayprotected static DataBufferBaseNDArray. internalCreateBuffer(double[] data)protected static DataBufferBaseNDArray. internalCreateBuffer(double[] data, long offset)protected static DataBufferBaseNDArray. internalCreateBuffer(float[] data)protected static DataBufferBaseNDArray. internalCreateBuffer(float[] data, long offset)protected static DataBufferBaseNDArray. internalCreateBuffer(int[] data)DataBufferBaseNDArray. shapeInfoDataBuffer()DataBufferINDArray. shapeInfoDataBuffer()Shape infoprotected DataBufferBaseNDArray. shapeOf()protected DataBufferBaseNDArray. strideOf()Methods in org.nd4j.linalg.api.ndarray that return types with arguments of type DataBuffer Modifier and Type Method Description Pair<DataBuffer,long[]>BaseShapeInfoProvider. createShapeInformation(long[] shape, char order, DataType dataType)This method creates shapeInformation buffer, based on shape & order being passed inPair<DataBuffer,long[]>BaseShapeInfoProvider. createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, long extras)Pair<DataBuffer,long[]>BaseShapeInfoProvider. createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, DataType dataType, boolean empty)Pair<DataBuffer,long[]>BaseShapeInfoProvider. createShapeInformation(long[] shape, DataType dataType)This method creates shapeInformation buffer, based on shape being passed inPair<DataBuffer,long[]>ShapeInfoProvider. createShapeInformation(long[] shape, char order, DataType dataType)This method creates long shapeInformation buffer, based on shape & order being passed inPair<DataBuffer,long[]>ShapeInfoProvider. createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, long extras)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 inPair<DataBuffer,long[]>ShapeInfoProvider. createShapeInformation(long[] shape, DataType dataType)This method creates long shapeInformation buffer, based on shape being passed inMethods in org.nd4j.linalg.api.ndarray with parameters of type DataBuffer Modifier and Type Method Description protected INDArrayBaseNDArray. create(DataBuffer buffer)protected INDArrayBaseNDArray. create(DataBuffer data, int[] shape, int[] strides)protected INDArrayBaseNDArray. create(DataBuffer data, int[] newShape, int[] newStrides, long offset)protected INDArrayBaseNDArray. create(DataBuffer data, int[] newShape, int[] newStrides, long offset, char ordering)protected INDArrayBaseNDArray. create(DataBuffer data, int[] shape, long offset)protected INDArrayBaseNDArray. create(DataBuffer data, long[] newShape, long[] newStrides, long offset, char ordering)protected int[]BaseNDArray. doPermuteSwap(DataBuffer shape, int[] rearrange)Deprecated.voidBaseNDArray. setData(DataBuffer data)voidINDArray. setData(DataBuffer data)Set the data for this ndarray.protected abstract intBaseNDArray. stringBuffer(com.google.flatbuffers.FlatBufferBuilder builder, DataBuffer buffer)Constructors in org.nd4j.linalg.api.ndarray with parameters of type DataBuffer Constructor Description BaseNDArray(int[] shape, DataBuffer buffer)Create with the specified shape and bufferBaseNDArray(DataBuffer buffer)BaseNDArray(DataBuffer floatBuffer, char order)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 offsetBaseNDArray(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(DataBuffer buffer, DataType dataType, long[] shape, long[] stride, long offset, char ordering) -
Uses of DataBuffer in org.nd4j.linalg.api.ops
Fields in org.nd4j.linalg.api.ops declared as DataBuffer Modifier and Type Field Description protected DataBufferBaseOp. extraArgzMethods in org.nd4j.linalg.api.ops that return DataBuffer Modifier and Type Method Description DataBufferBaseOp. extraArgsDataBuff(DataType dtype)DataBufferOp. extraArgsDataBuff(DataType bufferType)Returns the extra args as a data buffer -
Uses of DataBuffer in org.nd4j.linalg.api.ops.aggregates
Fields in org.nd4j.linalg.api.ops.aggregates with type parameters of type DataBuffer Modifier and Type Field Description protected List<DataBuffer>BaseAggregate. shapesMethods in org.nd4j.linalg.api.ops.aggregates that return types with arguments of type DataBuffer Modifier and Type Method Description List<DataBuffer>Aggregate. getShapes()List<DataBuffer>BaseAggregate. getShapes() -
Uses of DataBuffer in org.nd4j.linalg.api.ops.executioner
Methods in org.nd4j.linalg.api.ops.executioner that return DataBuffer Modifier and Type Method Description DataBufferDefaultOpExecutioner. createConstantBuffer(double[] values, DataType desiredType)DataBufferDefaultOpExecutioner. createConstantBuffer(float[] values, DataType desiredType)DataBufferDefaultOpExecutioner. createConstantBuffer(int[] values, DataType desiredType)DataBufferDefaultOpExecutioner. createConstantBuffer(long[] values, DataType desiredType)DataBufferOpExecutioner. createConstantBuffer(double[] values, DataType desiredType)DataBufferOpExecutioner. createConstantBuffer(float[] values, DataType desiredType)DataBufferOpExecutioner. createConstantBuffer(int[] values, DataType desiredType)DataBufferOpExecutioner. createConstantBuffer(long[] values, DataType desiredType)This method returns constant buffer for the given jvm arrayDataBufferDefaultOpExecutioner. createShapeInfo(long[] shape, long[] stride, long elementWiseStride, char order, DataType dtype, boolean empty)DataBufferDefaultOpExecutioner. createShapeInfo(long[] shape, long[] stride, long elementWiseStride, char order, DataType dtype, long extras)DataBufferOpExecutioner. createShapeInfo(long[] shape, long[] stride, long elementWiseStride, char order, DataType dtype, boolean empty)This method returns shapeInfo DataBufferDataBufferOpExecutioner. createShapeInfo(long[] shape, long[] stride, long elementWiseStride, char order, DataType dtype, long extra)Methods in org.nd4j.linalg.api.ops.executioner with parameters of type DataBuffer Modifier and Type Method Description StringDefaultOpExecutioner. getString(DataBuffer buffer, long index)StringOpExecutioner. getString(DataBuffer buffer, long index)This method extracts String from Utf8BufferlongDefaultOpExecutioner. profilingConfigurableHookIn(Op op, DataBuffer... tadBuffers)longDefaultOpExecutioner. profilingHookIn(Op op, DataBuffer... tadBuffers)Deprecated.intDefaultOpExecutioner. useCount(DataBuffer buffer)intOpExecutioner. useCount(DataBuffer buffer)This method returns reference use count from the Buffer -
Uses of DataBuffer in org.nd4j.linalg.api.shape
Methods in org.nd4j.linalg.api.shape that return DataBuffer Modifier and Type Method Description static DataBufferShape. createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, long extras)static DataBufferShape. createShapeInformation(long[] shape, long[] stride, long elementWiseStride, char order, DataType dataType, boolean empty)static DataBufferShape. createSparseInformation(int[] flags, long[] sparseOffsets, int[] hiddenDimensions, int underlyingRank)static DataBufferShape. shapeOf(DataBuffer buffer)Get the shape from the given int bufferstatic DataBufferShape. stride(DataBuffer buffer)Get the shape from the given int bufferMethods in org.nd4j.linalg.api.shape with parameters of type DataBuffer Modifier and Type Method Description static booleanShape. contentEquals(int[] arr, DataBuffer other)Compare the contents of a buffer and an array for equalsstatic booleanShape. contentEquals(long[] arr, DataBuffer other)static intShape. elementWiseStride(DataBuffer buffer)Get the element wise stride for the shape info bufferstatic int[]Shape. flags(DataBuffer buffer)static longShape. getOffset(DataBuffer shapeInformation, int[] indices)Deprecated.static longShape. getOffset(DataBuffer shapeInformation, int row, int col)Get the offset of the specified [row,col] for the 2d arraystatic longShape. getOffset(DataBuffer shapeInformation, int dim0, int dim1, int dim2)Get the offset of the specified [dim0,dim1,dim2] for the 3d arraystatic longShape. getOffset(DataBuffer shapeInformation, int dim0, int dim1, int dim2, int dim3)Get the offset of the specified [dim0,dim1,dim2,dim3] for the 4d arraystatic longShape. getOffset(DataBuffer shapeInformation, long... indices)static longShape. getOffsetUnsafe(DataBuffer shapeInformation, int row, int col)Identical toShape.getOffset(DataBuffer, int, int)but without input validation on array rankstatic longShape. getOffsetUnsafe(DataBuffer shapeInformation, int dim0, int dim1, int dim2)Identical toShape.getOffset(DataBuffer, int, int, int)but without input validation on array rankstatic longShape. getOffsetUnsafe(DataBuffer shapeInformation, int dim0, int dim1, int dim2, int dim3)static int[]Shape. hiddenDimension(DataBuffer buffer)static booleanShape. isMatrix(DataBuffer shapeInfo)Returns whether the passed in shape is a matrixstatic booleanShape. isRowVectorShape(DataBuffer shapeInfo)Returns true if the given shape is of length 1 or provided the shape length is 2: element 0 is 1static booleanShape. isVector(DataBuffer shapeInfo)Returns whether the given shape is a vectorstatic longShape. length(DataBuffer buffer)Gets the rank given the shape info bufferstatic intShape. offset(DataBuffer buffer)Deprecated.static charShape. order(DataBuffer buffer)Returns the order given the shape informationstatic intShape. rank(DataBuffer buffer)Gets the rank given the shape info bufferstatic voidShape. setElementWiseStride(DataBuffer buffer, int elementWiseStride)Get the element wise stride for the shape info bufferstatic long[]Shape. shape(DataBuffer buffer)Get array shape from the buffer, as an int[]static DataBufferShape. shapeOf(DataBuffer buffer)Get the shape from the given int bufferstatic intShape. size(DataBuffer buffer, int dimension)Get the size of the specified dimension.static intShape. sizeUnsafe(DataBuffer buffer, int dimension)Get the size of the specified dimension.static int[]Shape. sparseOffsets(DataBuffer buffer)static DataBufferShape. stride(DataBuffer buffer)Get the shape from the given int bufferstatic intShape. stride(DataBuffer buffer, int dimension)Get the stride of the specified dimensionstatic long[]Shape. strideArr(DataBuffer buffer)Get array shape from the buffer, as an int[]static intShape. strideUnsafe(DataBuffer buffer, int dimension, int rank)Get the stride of the specified dimension, without any input validationstatic StringShape. toString(DataBuffer buffer)To String for an int bufferstatic intShape. underlyingRank(DataBuffer buffer) -
Uses of DataBuffer in org.nd4j.linalg.cache
Methods in org.nd4j.linalg.cache that return DataBuffer Modifier and Type Method Description DataBufferConstantHandler. getConstantBuffer(boolean[] array, DataType dataType)This method returns DataBuffer with constant equal to input array.DataBufferConstantHandler. getConstantBuffer(double[] array, DataType dataType)This method returns DataBuffer with contant equal to input array.DataBufferConstantHandler. getConstantBuffer(float[] array, DataType dataType)This method returns DataBuffer with contant equal to input array.DataBufferConstantHandler. getConstantBuffer(int[] array, DataType dataType)DataBufferConstantHandler. getConstantBuffer(long[] array, DataType dataType)This method returns DataBuffer with constant equal to input array.DataBufferBasicConstantHandler. relocateConstantSpace(DataBuffer dataBuffer)DataBufferConstantHandler. relocateConstantSpace(DataBuffer dataBuffer)PLEASE NOTE: This method implementation is hardware-dependant.Methods in org.nd4j.linalg.cache that return types with arguments of type DataBuffer Modifier and Type Method 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.Methods in org.nd4j.linalg.cache with parameters of type DataBuffer Modifier and Type Method Description static long[]TadDescriptor. dataBufferToArray(DataBuffer buffer)Obtain the values from the shape buffer for the arraylongBasicConstantHandler. moveToConstantSpace(DataBuffer dataBuffer)longConstantHandler. moveToConstantSpace(DataBuffer dataBuffer)If specific hardware supports dedicated constant memory, this method forces DataBuffer passed in to be moved to that constant memory.DataBufferBasicConstantHandler. relocateConstantSpace(DataBuffer dataBuffer)DataBufferConstantHandler. relocateConstantSpace(DataBuffer dataBuffer)PLEASE NOTE: This method implementation is hardware-dependant. -
Uses of DataBuffer in org.nd4j.linalg.compression
Classes in org.nd4j.linalg.compression that implement DataBuffer Modifier and Type Class Description classCompressedDataBufferMethods in org.nd4j.linalg.compression that return DataBuffer Modifier and Type Method Description DataBufferBasicNDArrayCompressor. compress(DataBuffer buffer)Compress the given data buffer given the default compression algorithmDataBufferBasicNDArrayCompressor. compress(DataBuffer buffer, String algorithm)Compress the data buffer given a specified algorithmDataBufferNDArrayCompressor. compress(DataBuffer buffer)DataBufferCompressedDataBuffer. create(double[] data)Create the data buffer with respect to the given byte bufferDataBufferCompressedDataBuffer. create(float[] data)Create the data buffer with respect to the given byte bufferDataBufferCompressedDataBuffer. create(int[] data)Create the data buffer with respect to the given byte bufferprotected DataBufferCompressedDataBuffer. create(long length)Create with lengthDataBufferBasicNDArrayCompressor. decompress(DataBuffer buffer, DataType targetType)Decompress the given databufferDataBufferNDArrayCompressor. decompress(DataBuffer buffer, DataType targetType)Return a compressed databufferDataBufferCompressedDataBuffer. dup()static DataBufferCompressedDataBuffer. readUnknown(DataInputStream s, DataBuffer.AllocationMode allocMode, long length, DataType type)Drop-in replacement wrapper for BaseDataBuffer.read() method, aware of CompressedDataBufferDataBufferCompressedDataBuffer. reallocate(long length)Methods in org.nd4j.linalg.compression with parameters of type DataBuffer Modifier and Type Method Description DataBufferBasicNDArrayCompressor. compress(DataBuffer buffer)Compress the given data buffer given the default compression algorithmDataBufferBasicNDArrayCompressor. compress(DataBuffer buffer, String algorithm)Compress the data buffer given a specified algorithmDataBufferNDArrayCompressor. compress(DataBuffer buffer)DataBufferBasicNDArrayCompressor. decompress(DataBuffer buffer, DataType targetType)Decompress the given databufferDataBufferNDArrayCompressor. decompress(DataBuffer buffer, DataType targetType)Return a compressed databufferConstructors in org.nd4j.linalg.compression with parameters of type DataBuffer Constructor Description CompressionDescriptor(DataBuffer buffer)Create a compression descriptor from the given data buffer elementsCompressionDescriptor(DataBuffer buffer, String algorithm)Initialize a compression descriptor based on the given algorithm and data bufferCompressionDescriptor(DataBuffer buffer, NDArrayCompressor compressor)Initialize a compression descriptor based on the given data buffer (for the sizes) and the compressor to get the opType -
Uses of DataBuffer in org.nd4j.linalg.factory
Methods in org.nd4j.linalg.factory that return DataBuffer Modifier and Type Method Description DataBufferNDArrayFactory. convertDataEx(DataTypeEx typeSrc, DataBuffer source, DataTypeEx typeDst)static DataBufferNd4j. createBuffer(@lombok.NonNull int[] shape, @NonNull DataType type)Create a buffer equal of length prod(shape)static DataBufferNd4j. createBuffer(@lombok.NonNull long[] shape, @NonNull DataType type)static DataBufferNd4j. createBuffer(byte[] data, int length, long offset)Create a buffer based on the data opTypestatic DataBufferNd4j. createBuffer(double[] data)static DataBufferNd4j. createBuffer(double[] data, long offset)Create a buffer based on the data opTypestatic DataBufferNd4j. createBuffer(float[] data)Create a buffer based on the data opTypestatic DataBufferNd4j. createBuffer(float[] data, long offset)Create a buffer based on the data opTypestatic DataBufferNd4j. createBuffer(int[] data)Create a buffer equal of length prod(shape)static DataBufferNd4j. createBuffer(int[] shape, DataType type, long offset)Create a buffer equal of length prod(shape)static DataBufferNd4j. createBuffer(int length, long offset)Creates a buffer of the specified length based on the data opTypestatic DataBufferNd4j. createBuffer(long length)Creates a buffer of the specified length based on the data opTypestatic DataBufferNd4j. createBuffer(long[] data)Create a buffer equal of length prod(shape)static DataBufferNd4j. createBuffer(long length, boolean initialize)static DataBufferNd4j. 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 DataBufferNd4j. 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 DataBufferNd4j. createBuffer(ByteBuffer buffer, DataType type, int length)Creates a buffer of the specified opType and length with the given byte buffer.static DataBufferNd4j. createBuffer(ByteBuffer buffer, DataType type, int length, long offset)Creates a buffer of the specified opType and length with the given byte buffer.static DataBufferNd4j. 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 lengthstatic DataBufferNd4j. createBuffer(DataBuffer underlyingBuffer, long offset, long length)Create a view of a data buffer Leverages the underlying storage of the buffer with a new viewstatic DataBufferNd4j. createBuffer(DataType dataType, long length, boolean initialize)Create a data buffer based on datatype.static DataBufferNd4j. createBuffer(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)Create a data buffer based on datatype, workspace.static DataBufferNd4j. createBufferDetached(double[] data)static DataBufferNd4j. createBufferDetached(float[] data)Create a buffer based on underlying array.static DataBufferNd4j. createBufferDetached(int[] data)Create a buffer equal of length prod(shape).static DataBufferNd4j. createBufferDetached(int[] shape, DataType type)Create a buffer equal of length prod(shape).static DataBufferNd4j. createBufferDetached(long[] data)Create a buffer equal of length prod(shape).static DataBufferNd4j. createBufferDetached(long[] shape, DataType type)static DataBufferNd4j. createTypedBuffer(boolean[] data, DataType dataType)static DataBufferNd4j. createTypedBuffer(byte[] data, DataType dataType)static DataBufferNd4j. createTypedBuffer(double[] data, DataType dataType)Create a buffer based on the data of the underlying java array with the specified type..static DataBufferNd4j. createTypedBuffer(double[] data, DataType dataType, MemoryWorkspace workspace)Create a buffer based on the data of the underlying java array, specified type and workspacestatic DataBufferNd4j. createTypedBuffer(float[] data, DataType dataType)static DataBufferNd4j. createTypedBuffer(float[] data, DataType dataType, MemoryWorkspace workspace)static DataBufferNd4j. createTypedBuffer(int[] data, DataType dataType)static DataBufferNd4j. createTypedBuffer(long[] data, DataType dataType)static DataBufferNd4j. createTypedBuffer(short[] data, DataType dataType)static DataBufferNd4j. createTypedBufferDetached(boolean[] data, DataType dataType)static DataBufferNd4j. createTypedBufferDetached(byte[] data, DataType dataType)static DataBufferNd4j. createTypedBufferDetached(double[] data, DataType dataType)Create am uninitialized buffer based on the data of the underlying java array and specified type.static DataBufferNd4j. createTypedBufferDetached(float[] data, DataType dataType)static DataBufferNd4j. createTypedBufferDetached(int[] data, DataType dataType)static DataBufferNd4j. createTypedBufferDetached(long[] data, DataType dataType)static DataBufferNd4j. createTypedBufferDetached(short[] data, DataType dataType)Methods in org.nd4j.linalg.factory with parameters of type DataBuffer Modifier and Type Method Description voidNDArrayFactory. convertDataEx(DataTypeEx typeSrc, org.bytedeco.javacpp.Pointer source, DataTypeEx typeDst, DataBuffer buffer)DataBufferNDArrayFactory. convertDataEx(DataTypeEx typeSrc, DataBuffer source, DataTypeEx typeDst)voidNDArrayFactory. convertDataEx(DataTypeEx typeSrc, DataBuffer source, DataTypeEx typeDst, DataBuffer target)INDArrayBaseNDArrayFactory. create(DataBuffer buffer, int[] shape, int[] stride, char order, long offset)static INDArrayNd4j. create(DataBuffer buffer)Create an array based on the data buffer.static INDArrayNd4j. create(DataBuffer data, int... shape)Create an array based on the data buffer with given shape.static INDArrayNd4j. create(DataBuffer data, int[] shape, int[] strides, long offset)Create an array based on the data buffer with given shape, stride and offset.static INDArrayNd4j. create(DataBuffer data, int[] newShape, int[] newStride, long offset, char ordering)static INDArrayNd4j. create(DataBuffer data, int[] shape, long offset)static INDArrayNd4j. create(DataBuffer data, long... shape)static INDArrayNd4j. create(DataBuffer data, long[] shape, long[] strides, long offset)static INDArrayNd4j. create(DataBuffer data, long[] newShape, long[] newStride, long offset, char ordering)static INDArrayNd4j. 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.static INDArrayNd4j. 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.INDArrayNDArrayFactory. create(int[] shape, DataBuffer buffer)Create an ndarray with the given shape and dataINDArrayNDArrayFactory. create(DataBuffer data)Creates a row vector with the dataINDArrayNDArrayFactory. create(DataBuffer data, int[] shape)Create an ndrray with the specified shapeINDArrayNDArrayFactory. create(DataBuffer buffer, int[] shape, int[] stride, char order, long offset)INDArrayNDArrayFactory. create(DataBuffer data, int[] shape, int[] stride, long offset)Creates an ndarray with the specified shapeINDArrayNDArrayFactory. create(DataBuffer data, int[] newShape, int[] newStride, long offset, char ordering)INDArrayNDArrayFactory. create(DataBuffer buffer, int[] shape, long offset)INDArrayNDArrayFactory. create(DataBuffer data, long[] shape)INDArrayNDArrayFactory. create(DataBuffer data, long[] shape, long[] stride, long offset)INDArrayNDArrayFactory. create(DataBuffer data, long[] newShape, long[] newStride, long offset, char ordering)INDArrayNDArrayFactory. create(DataBuffer data, long[] newShape, long[] newStride, long offset, char ordering, DataType dataType)INDArrayNDArrayFactory. create(DataBuffer data, long[] newShape, long[] newStride, long offset, long ews, char ordering)INDArrayNDArrayFactory. create(DataBuffer data, long rows, long columns, int[] stride, long offset)Creates an ndarray with the specified shapestatic INDArrayNd4j. createArrayFromShapeBuffer(DataBuffer data, Pair<DataBuffer,long[]> shapeInfo)Create array based in data buffer and shape info,static INDArrayNd4j. createArrayFromShapeBuffer(DataBuffer data, DataBuffer shapeInfo)Create array based in data buffer and shape info,static DataBufferNd4j. createBuffer(DataBuffer underlyingBuffer, long offset, long length)Create a view of a data buffer Leverages the underlying storage of the buffer with a new viewMethod parameters in org.nd4j.linalg.factory with type arguments of type DataBuffer Modifier and Type Method Description static INDArrayNd4j. createArrayFromShapeBuffer(DataBuffer data, Pair<DataBuffer,long[]> shapeInfo)Create array based in data buffer and shape info, -
Uses of DataBuffer in org.nd4j.linalg.profiler
Methods in org.nd4j.linalg.profiler with parameters of type DataBuffer Modifier and Type Method Description voidOpProfiler. processOpCall(Op op, DataBuffer... tadBuffers)OpProfiler.PenaltyCause[]OpProfiler. processTADOperands(DataBuffer... tadBuffers) -
Uses of DataBuffer in org.nd4j.serde.binary
Methods in org.nd4j.serde.binary that return DataBuffer Modifier and Type Method Description static DataBufferBinarySerde. readShapeFromDisk(File readFrom)This method returns shape databuffer from saved earlier file
-