Interface DataBufferFactory
-
public interface DataBufferFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataBuffer.AllocationModeallocationMode()Allocation mode for the data bufferDataBuffercreate(ByteBuffer underlyingBuffer, DataType type, long length, long offset)Creates a DataBuffer from java.nio.ByteBufferDataBuffercreate(org.bytedeco.javacpp.DoublePointer doublePointer, long length)DataBuffercreate(org.bytedeco.javacpp.FloatPointer floatPointer, long length)DataBuffercreate(org.bytedeco.javacpp.IntPointer intPointer, long length)DataBuffercreate(org.bytedeco.javacpp.Pointer pointer, org.bytedeco.javacpp.Pointer specialPointer, DataType type, long length, org.bytedeco.javacpp.indexer.Indexer indexer)DataBuffercreate(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 bufferDataBuffercreate(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 storageDataBuffercreate(DataType dataType, long length, boolean initialize)DataBuffercreate(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateBFloat16(long length)DataBuffercreateBFloat16(long length, boolean initialize)DataBuffercreateBFloat16(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateBool(long length)DataBuffercreateBool(long length, boolean initialize)DataBuffercreateBool(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateByte(long length)DataBuffercreateByte(long length, boolean initialize)DataBuffercreateByte(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateDouble(double[] data)Creates a double data bufferDataBuffercreateDouble(double[] data, boolean copy)Creates a double data bufferDataBuffercreateDouble(double[] data, boolean copy, MemoryWorkspace workspace)Creates a double data bufferDataBuffercreateDouble(double[] data, MemoryWorkspace workspace)Creates a double data bufferDataBuffercreateDouble(float[] data)Creates a double data bufferDataBuffercreateDouble(float[] data, boolean copy)Creates a double data bufferDataBuffercreateDouble(int[] data)Creates a double data bufferDataBuffercreateDouble(int[] data, boolean copy)Creates a double data bufferDataBuffercreateDouble(long length)Create a double data bufferDataBuffercreateDouble(long[] data, boolean copy)Creates a double data bufferDataBuffercreateDouble(long length, boolean initialize)Create a double data buffer, with optional initializationDataBuffercreateDouble(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateDouble(long offset, byte[] data, int length)Create a double bufferDataBuffercreateDouble(long offset, double[] data)Creates a double data bufferDataBuffercreateDouble(long offset, double[] data, boolean copy)Creates a double data bufferDataBuffercreateDouble(long offset, double[] data, MemoryWorkspace workspace)DataBuffercreateDouble(long offset, float[] data)Creates a double data bufferDataBuffercreateDouble(long offset, float[] data, boolean copy)Creates a double data bufferDataBuffercreateDouble(long offset, int length)Create a double data bufferDataBuffercreateDouble(long offset, int[] data)Creates a double data bufferDataBuffercreateDouble(long offset, int[] data, boolean copy)Creates a double data bufferDataBuffercreateFloat(double[] data)Creates a float data bufferDataBuffercreateFloat(double[] data, boolean copy)Creates a float data bufferDataBuffercreateFloat(float[] data)Creates a float data bufferDataBuffercreateFloat(float[] data, boolean copy)Creates a float data bufferDataBuffercreateFloat(float[] data, boolean copy, MemoryWorkspace workspace)DataBuffercreateFloat(float[] data, MemoryWorkspace workspace)DataBuffercreateFloat(int[] data)Creates a double data bufferDataBuffercreateFloat(int[] data, boolean copy)Creates a double data bufferDataBuffercreateFloat(long length)Create a float data bufferDataBuffercreateFloat(long[] data, boolean copy)Creates a float data bufferDataBuffercreateFloat(long length, boolean initialize)Create a float data buffer, with optional initializationDataBuffercreateFloat(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateFloat(long offset, byte[] data, int length)Create a double bufferDataBuffercreateFloat(long offset, double[] data)Creates a float data bufferDataBuffercreateFloat(long offset, double[] data, boolean copy)Creates a float data bufferDataBuffercreateFloat(long offset, float[] data)Creates a float data bufferDataBuffercreateFloat(long offset, float[] data, boolean copy)Creates a float data bufferDataBuffercreateFloat(long offset, float[] data, MemoryWorkspace workspace)DataBuffercreateFloat(long offset, int length)Create a float data bufferDataBuffercreateFloat(long offset, int[] data)Creates a double data bufferDataBuffercreateFloat(long offset, int[] data, boolean copy)Creates a double data bufferDataBuffercreateHalf(double[] data)Creates a half-precision data bufferDataBuffercreateHalf(double[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateHalf(float[] data)Creates a half-precision data bufferDataBuffercreateHalf(float[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateHalf(float[] data, boolean copy, MemoryWorkspace workspace)DataBuffercreateHalf(float[] data, MemoryWorkspace workspace)DataBuffercreateHalf(int[] data)Creates a half-precision data bufferDataBuffercreateHalf(int[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateHalf(long length)Creates half-precision data bufferDataBuffercreateHalf(long length, boolean initialize)Creates half-precision data bufferDataBuffercreateHalf(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateHalf(long offset, byte[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateHalf(long offset, double[] data)Creates a half-precision data bufferDataBuffercreateHalf(long offset, double[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateHalf(long offset, float[] data)Creates a half-precision data bufferDataBuffercreateHalf(long offset, float[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateHalf(long offset, float[] data, MemoryWorkspace workspace)DataBuffercreateHalf(long offset, int length)Creates a half-precision data bufferDataBuffercreateHalf(long offset, int[] data)Creates a half-precision data bufferDataBuffercreateHalf(long offset, int[] data, boolean copy)Creates a half-precision data bufferDataBuffercreateInt(double[] data)Creates an int data bufferDataBuffercreateInt(double[] data, boolean copy)Creates an int data bufferDataBuffercreateInt(float[] data)Creates an int data bufferDataBuffercreateInt(float[] data, boolean copy)Creates an int data bufferDataBuffercreateInt(int[] data)Creates a double data bufferDataBuffercreateInt(int[] data, boolean copy)Creates a double data bufferDataBuffercreateInt(int[] data, boolean copy, MemoryWorkspace workspace)DataBuffercreateInt(int[] data, MemoryWorkspace workspace)DataBuffercreateInt(long length)Create an int data bufferDataBuffercreateInt(long[] data, boolean copy)Creates a int data bufferDataBuffercreateInt(long length, boolean initialize)Create an int data buffer, with optional initializationDataBuffercreateInt(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateInt(long offset, double[] data)Creates an int data bufferDataBuffercreateInt(long offset, double[] data, boolean copy)Creates an int data bufferDataBuffercreateInt(long offset, float[] data)Creates an int data bufferDataBuffercreateInt(long offset, float[] data, boolean copy)Creates an int data bufferDataBuffercreateInt(long offset, int length)Create an int data bufferDataBuffercreateInt(long offset, int[] data)Creates a double data bufferDataBuffercreateInt(long offset, int[] data, boolean copy)Creates a double data bufferDataBuffercreateLong(int[] data, boolean copy)Creates a long data bufferDataBuffercreateLong(long length)DataBuffercreateLong(long[] data)DataBuffercreateLong(long[] data, boolean copy)DataBuffercreateLong(long[] data, MemoryWorkspace workspace)DataBuffercreateLong(long length, boolean initialize)Create an int data buffer, with optional initializationDataBuffercreateLong(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateSame(DataBuffer buffer, boolean init)This method will create new DataBuffer of the same dataType & same lengthDataBuffercreateSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)This method will create new DataBuffer of the same dataType & same lengthDataBuffercreateShort(long length)DataBuffercreateShort(long length, boolean initialize)DataBuffercreateShort(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateUByte(long length)DataBuffercreateUByte(long length, boolean initialize)DataBuffercreateUByte(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateUInt(long length)DataBuffercreateUInt(long length, boolean initialize)DataBuffercreateUInt(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateULong(long length)DataBuffercreateULong(long length, boolean initialize)DataBuffercreateULong(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateUShort(long length)DataBuffercreateUShort(long length, boolean initialize)DataBuffercreateUShort(long length, boolean initialize, MemoryWorkspace workspace)DataBuffercreateUtf8Buffer(byte[] data, long product)Class<? extends DataBuffer>doubleBufferClass()Class<? extends DataBuffer>floatBufferClass()Class<? extends DataBuffer>halfBufferClass()Class<? extends DataBuffer>intBufferClass()Class<? extends DataBuffer>longBufferClass()voidsetAllocationMode(DataBuffer.AllocationMode allocationMode)Setter for the allocation mode
-
-
-
Method Detail
-
setAllocationMode
void setAllocationMode(DataBuffer.AllocationMode allocationMode)
Setter for the allocation mode- Parameters:
allocationMode-
-
allocationMode
DataBuffer.AllocationMode allocationMode()
Allocation mode for the data buffer- Returns:
-
create
DataBuffer 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- Parameters:
underlyingBuffer- the underlying buffer to get the storage fromoffset- the offset to view the data aslength- the length of the buffer- Returns:
- the databuffer as a view
-
create
DataBuffer create(ByteBuffer underlyingBuffer, DataType type, long length, long offset)
Creates a DataBuffer from java.nio.ByteBuffer- Parameters:
underlyingBuffer-offset-length-- Returns:
-
createDouble
DataBuffer createDouble(long offset, int length)
Create a double data buffer- Returns:
- the new data buffer
-
createSame
DataBuffer createSame(DataBuffer buffer, boolean init)
This method will create new DataBuffer of the same dataType & same length- Parameters:
buffer-- Returns:
-
createSame
DataBuffer createSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)
This method will create new DataBuffer of the same dataType & same length- Parameters:
buffer-- Returns:
-
createFloat
DataBuffer createFloat(long offset, int length)
Create a float data buffer- Parameters:
length- the length of the buffer- Returns:
- the new data buffer
-
createInt
DataBuffer createInt(long offset, int length)
Create an int data buffer- Parameters:
length- the length of the data buffer- Returns:
- the create data buffer
-
createDouble
DataBuffer createDouble(long offset, int[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long offset, int[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(long offset, int[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long offset, double[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long offset, double[] data, MemoryWorkspace workspace)
-
createDouble
DataBuffer createDouble(long offset, byte[] data, int length)
Create a double buffer- Parameters:
data-length-- Returns:
-
createFloat
DataBuffer createFloat(long offset, byte[] data, int length)
Create a double buffer- Parameters:
data-length-- Returns:
-
createFloat
DataBuffer createFloat(long offset, double[] data)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(long offset, double[] data)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long offset, float[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long offset, float[] data)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long offset, float[] data, MemoryWorkspace workspace)
-
createInt
DataBuffer createInt(long offset, float[] data)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long offset, int[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long offset, int[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(long offset, int[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long offset, double[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long offset, double[] data, boolean copy)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(long offset, double[] data, boolean copy)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long offset, float[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long offset, float[] data, boolean copy)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(long offset, float[] data, boolean copy)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long length)
Create a double data buffer- Returns:
- the new data buffer
-
createDouble
DataBuffer createDouble(long length, boolean initialize)
Create a double data buffer, with optional initialization- Parameters:
initialize- If true: initialize the buffer. If false: don't initialize.- Returns:
- the new data buffer
-
createDouble
DataBuffer createDouble(long length, boolean initialize, MemoryWorkspace workspace)
-
createFloat
DataBuffer createFloat(long length)
Create a float data buffer- Parameters:
length- the length of the buffer- Returns:
- the new data buffer
-
createFloat
DataBuffer createFloat(long length, boolean initialize)
Create a float data buffer, with optional initialization- Parameters:
length- the length of the bufferinitialize- If true: initialize the buffer. If false: don't initialize.- Returns:
- the new data buffer
-
createFloat
DataBuffer createFloat(long length, boolean initialize, MemoryWorkspace workspace)
-
create
DataBuffer create(DataType dataType, long length, boolean initialize)
-
create
DataBuffer create(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)
-
createInt
DataBuffer createInt(long length)
Create an int data buffer- Parameters:
length- the length of the data buffer- Returns:
- the create data buffer
-
createBFloat16
DataBuffer createBFloat16(long length)
-
createByte
DataBuffer createByte(long length)
-
createShort
DataBuffer createShort(long length)
-
createBool
DataBuffer createBool(long length)
-
createUShort
DataBuffer createUShort(long length)
-
createUInt
DataBuffer createUInt(long length)
-
createUByte
DataBuffer createUByte(long length)
-
createULong
DataBuffer createULong(long length)
-
createBFloat16
DataBuffer createBFloat16(long length, boolean initialize)
-
createByte
DataBuffer createByte(long length, boolean initialize)
-
createShort
DataBuffer createShort(long length, boolean initialize)
-
createBool
DataBuffer createBool(long length, boolean initialize)
-
createUShort
DataBuffer createUShort(long length, boolean initialize)
-
createUInt
DataBuffer createUInt(long length, boolean initialize)
-
createUByte
DataBuffer createUByte(long length, boolean initialize)
-
createULong
DataBuffer createULong(long length, boolean initialize)
-
createBFloat16
DataBuffer createBFloat16(long length, boolean initialize, MemoryWorkspace workspace)
-
createByte
DataBuffer createByte(long length, boolean initialize, MemoryWorkspace workspace)
-
createShort
DataBuffer createShort(long length, boolean initialize, MemoryWorkspace workspace)
-
createBool
DataBuffer createBool(long length, boolean initialize, MemoryWorkspace workspace)
-
createUShort
DataBuffer createUShort(long length, boolean initialize, MemoryWorkspace workspace)
-
createUInt
DataBuffer createUInt(long length, boolean initialize, MemoryWorkspace workspace)
-
createUByte
DataBuffer createUByte(long length, boolean initialize, MemoryWorkspace workspace)
-
createULong
DataBuffer createULong(long length, boolean initialize, MemoryWorkspace workspace)
-
createInt
DataBuffer createInt(long length, boolean initialize)
Create an int data buffer, with optional initialization- Parameters:
length- the length of the data bufferinitialize- If true: initialize the buffer. If false: don't initialize.- Returns:
- the create data buffer
-
createInt
DataBuffer createInt(long length, boolean initialize, MemoryWorkspace workspace)
-
createLong
DataBuffer createLong(long[] data)
-
createLong
DataBuffer createLong(long[] data, boolean copy)
-
createLong
DataBuffer createLong(long length)
-
createLong
DataBuffer createLong(long length, boolean initialize)
Create an int data buffer, with optional initialization- Parameters:
length- the length of the data bufferinitialize- If true: initialize the buffer. If false: don't initialize.- Returns:
- the create data buffer
-
createLong
DataBuffer createLong(long[] data, MemoryWorkspace workspace)
-
createLong
DataBuffer createLong(long length, boolean initialize, MemoryWorkspace workspace)
-
createDouble
DataBuffer createDouble(int[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(int[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(int[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(int[] data, MemoryWorkspace workspace)
-
createInt
DataBuffer createInt(int[] data, boolean copy, MemoryWorkspace workspace)
-
createDouble
DataBuffer createDouble(double[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(double[] data)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(double[] data)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(float[] data)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(float[] data)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(float[] data, MemoryWorkspace workspace)
-
createInt
DataBuffer createInt(float[] data)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(int[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(int[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(int[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createLong
DataBuffer createLong(int[] data, boolean copy)
Creates a long data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(long[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(long[] data, boolean copy)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(long[] data, boolean copy)
Creates a int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(double[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(double[] data, MemoryWorkspace workspace)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(double[] data, boolean copy, MemoryWorkspace workspace)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(double[] data, boolean copy)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createInt
DataBuffer createInt(double[] data, boolean copy)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createDouble
DataBuffer createDouble(float[] data, boolean copy)
Creates a double data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(float[] data, boolean copy)
Creates a float data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createFloat
DataBuffer createFloat(float[] data, boolean copy, MemoryWorkspace workspace)
-
createInt
DataBuffer createInt(float[] data, boolean copy)
Creates an int data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
create
DataBuffer 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- Parameters:
pointer- the pointer to usetype- the opType of bufferlength- the length of the bufferindexer-- Returns:
- the data buffer backed by this pointer with the given opType and length.
-
create
DataBuffer create(org.bytedeco.javacpp.Pointer pointer, org.bytedeco.javacpp.Pointer specialPointer, DataType type, long length, org.bytedeco.javacpp.indexer.Indexer indexer)
-
create
DataBuffer create(org.bytedeco.javacpp.DoublePointer doublePointer, long length)
- Parameters:
doublePointer-length-- Returns:
-
create
DataBuffer create(org.bytedeco.javacpp.IntPointer intPointer, long length)
- Parameters:
intPointer-length-- Returns:
-
create
DataBuffer create(org.bytedeco.javacpp.FloatPointer floatPointer, long length)
- Parameters:
floatPointer-length-- Returns:
-
createHalf
DataBuffer createHalf(long length)
Creates half-precision data buffer- Parameters:
length- length of new data buffer- Returns:
-
createHalf
DataBuffer createHalf(long length, boolean initialize)
Creates half-precision data buffer- Parameters:
length- length of new data bufferinitialize- true if memset should be used on allocated memory, false otherwise- Returns:
-
createHalf
DataBuffer createHalf(long length, boolean initialize, MemoryWorkspace workspace)
-
createHalf
DataBuffer createHalf(float[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(float[] data, MemoryWorkspace workspace)
-
createHalf
DataBuffer createHalf(float[] data, boolean copy, MemoryWorkspace workspace)
-
createHalf
DataBuffer createHalf(double[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, double[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, float[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, int[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, double[] data)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, float[] data)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, float[] data, MemoryWorkspace workspace)
-
createHalf
DataBuffer createHalf(long offset, int[] data)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, byte[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(int[] data, boolean copy)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(float[] data)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(double[] data)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(int[] data)
Creates a half-precision data buffer- Parameters:
data- the data to create the buffer from- Returns:
- the new buffer
-
createHalf
DataBuffer createHalf(long offset, int length)
Creates a half-precision data buffer- Returns:
- the new buffer
-
intBufferClass
Class<? extends DataBuffer> intBufferClass()
-
longBufferClass
Class<? extends DataBuffer> longBufferClass()
-
halfBufferClass
Class<? extends DataBuffer> halfBufferClass()
-
floatBufferClass
Class<? extends DataBuffer> floatBufferClass()
-
doubleBufferClass
Class<? extends DataBuffer> doubleBufferClass()
-
createUtf8Buffer
DataBuffer createUtf8Buffer(byte[] data, long product)
-
-