public class CudaHalfDataBuffer extends BaseCudaDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeEx
allocationPoint, globalType
allocationMode, constant, dirty, elementSize, indexer, isPersist, length, offset, originalBuffer, originalOffset, pointer, referencing, trackingPoint, type, underlyingLength, wrappedBuffer, wrappedDataBuffer
Constructor and Description |
---|
CudaHalfDataBuffer(byte[] data,
long length) |
CudaHalfDataBuffer(ByteBuffer buffer,
long length) |
CudaHalfDataBuffer(ByteBuffer buffer,
long length,
int offset) |
CudaHalfDataBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
CudaHalfDataBuffer(double[] data) |
CudaHalfDataBuffer(double[] data,
boolean copy) |
CudaHalfDataBuffer(double[] data,
boolean copy,
int offset) |
CudaHalfDataBuffer(float[] buffer) |
CudaHalfDataBuffer(float[] data,
boolean copy) |
CudaHalfDataBuffer(float[] data,
boolean copy,
int offset) |
CudaHalfDataBuffer(int[] data) |
CudaHalfDataBuffer(int[] data,
boolean copy) |
CudaHalfDataBuffer(int[] data,
boolean copy,
int offset) |
CudaHalfDataBuffer(long length)
Base constructor
|
CudaHalfDataBuffer(long length,
boolean initialize) |
CudaHalfDataBuffer(long length,
int elementSize) |
CudaHalfDataBuffer(long length,
int elementSize,
long offset) |
CudaHalfDataBuffer(org.bytedeco.javacpp.Pointer pointer,
org.bytedeco.javacpp.indexer.Indexer indexer,
long length)
Meant for creating another view of a buffer
|
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
double[] |
asDouble() |
float[] |
asFloat() |
int[] |
asInt() |
void |
assign(long[] indices,
double[] data,
boolean contiguous,
long inc) |
void |
assign(long[] indices,
float[] data,
boolean contiguous,
long inc) |
DataBuffer |
create(double[] data) |
DataBuffer |
create(float[] data) |
DataBuffer |
create(int[] data) |
protected DataBuffer |
create(long length) |
DataBuffer.Type |
dataType() |
void |
flush() |
double |
getDouble(long i) |
double[] |
getDoublesAt(long offset,
long inc,
int length) |
float[] |
getFloatsAt(long offset,
long inc,
int length) |
protected void |
initTypeAndSize()
Initialize the type of this buffer
|
void |
setData(double[] data) |
void |
setData(float[] data) |
void |
setData(int[] data) |
addReferencing, address, allocationMode, asNio, asNioDouble, asNioFloat, asNioInt, assign, copyAtStride, destroy, dup, equals, getComplex, getComplexDouble, getComplexFloat, getElementSize, getFloat, getHostBuffer, getHostPointer, getHostPointer, getHostPointer, getInt, getNumber, put, put, put, put, read, references, removeReferencing, sameUnderlyingData, set, set, set, set, set, set, set, setNioBuffer, toString, write, write
addressPointer, array, assign, assign, assign, assign, assign, assign, assign, dirty, doReadObject, fromFloat, getDoublesAt, getFloatsAt, getShort, getTrackingPoint, hashCode, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, putByGlobalType, read, readContent, setConstant, setTrackingPoint, toFloat, underlyingDataBuffer, underlyingLength, unPersist
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addressPointer, array, assign, assign, assign, assign, assign, assign, assign, dirty, getDoublesAt, getFloatsAt, getTrackingPoint, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, read, setConstant, setTrackingPoint, underlyingDataBuffer, underlyingLength, unPersist
public CudaHalfDataBuffer(org.bytedeco.javacpp.Pointer pointer, org.bytedeco.javacpp.indexer.Indexer indexer, long length)
pointer
- the underlying buffer to create a view fromindexer
- the indexer for the pointerlength
- the length of the viewpublic CudaHalfDataBuffer(long length)
length
- the length of the bufferpublic CudaHalfDataBuffer(long length, boolean initialize)
public CudaHalfDataBuffer(long length, int elementSize)
public CudaHalfDataBuffer(long length, int elementSize, long offset)
public CudaHalfDataBuffer(DataBuffer underlyingBuffer, long length, long offset)
public CudaHalfDataBuffer(float[] buffer)
public CudaHalfDataBuffer(float[] data, boolean copy)
public CudaHalfDataBuffer(float[] data, boolean copy, int offset)
public CudaHalfDataBuffer(double[] data)
public CudaHalfDataBuffer(double[] data, boolean copy)
public CudaHalfDataBuffer(double[] data, boolean copy, int offset)
public CudaHalfDataBuffer(int[] data)
public CudaHalfDataBuffer(int[] data, boolean copy)
public CudaHalfDataBuffer(int[] data, boolean copy, int offset)
public CudaHalfDataBuffer(byte[] data, long length)
public CudaHalfDataBuffer(ByteBuffer buffer, long length)
public CudaHalfDataBuffer(ByteBuffer buffer, long length, int offset)
protected void initTypeAndSize()
initTypeAndSize
in class BaseDataBuffer
public void assign(long[] indices, float[] data, boolean contiguous, long inc)
assign
in interface DataBuffer
assign
in class BaseDataBuffer
public void assign(long[] indices, double[] data, boolean contiguous, long inc)
assign
in interface DataBuffer
assign
in class BaseDataBuffer
protected DataBuffer create(long length)
create
in class BaseDataBuffer
public float[] getFloatsAt(long offset, long inc, int length)
getFloatsAt
in interface DataBuffer
getFloatsAt
in class BaseDataBuffer
public double[] getDoublesAt(long offset, long inc, int length)
getDoublesAt
in interface DataBuffer
getDoublesAt
in class BaseDataBuffer
public void setData(float[] data)
setData
in interface DataBuffer
setData
in class BaseCudaDataBuffer
public void setData(int[] data)
setData
in interface DataBuffer
setData
in class BaseCudaDataBuffer
public void setData(double[] data)
setData
in interface DataBuffer
setData
in class BaseCudaDataBuffer
public byte[] asBytes()
asBytes
in interface DataBuffer
asBytes
in class BaseCudaDataBuffer
public DataBuffer.Type dataType()
dataType
in interface DataBuffer
dataType
in class BaseDataBuffer
public float[] asFloat()
asFloat
in interface DataBuffer
asFloat
in class BaseCudaDataBuffer
public double[] asDouble()
asDouble
in interface DataBuffer
asDouble
in class BaseCudaDataBuffer
public int[] asInt()
asInt
in interface DataBuffer
asInt
in class BaseCudaDataBuffer
public double getDouble(long i)
getDouble
in interface DataBuffer
getDouble
in class BaseCudaDataBuffer
public DataBuffer create(double[] data)
create
in class BaseDataBuffer
public DataBuffer create(float[] data)
create
in class BaseDataBuffer
public DataBuffer create(int[] data)
create
in class BaseDataBuffer
public void flush()
flush
in interface DataBuffer
flush
in class BaseCudaDataBuffer
Copyright © 2016. All Rights Reserved.