public class CudaDoubleDataBuffer extends BaseCudaDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type
allocationPoint
allocationMode, constant, dirty, doubleData, elementSize, floatData, indexer, intData, isPersist, length, offset, originalBuffer, originalOffset, pointer, referencing, trackingPoint, type, underlyingLength, wrappedBuffer, wrappedDataBuffer
Constructor and Description |
---|
CudaDoubleDataBuffer(byte[] data,
long length) |
CudaDoubleDataBuffer(ByteBuffer buffer,
long length) |
CudaDoubleDataBuffer(ByteBuffer buffer,
long length,
long offset) |
CudaDoubleDataBuffer(io.netty.buffer.ByteBuf buf,
long length) |
CudaDoubleDataBuffer(io.netty.buffer.ByteBuf buf,
long length,
long offset) |
CudaDoubleDataBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
CudaDoubleDataBuffer(double[] data)
Instantiate based on the given data
|
CudaDoubleDataBuffer(double[] data,
boolean copy) |
CudaDoubleDataBuffer(double[] data,
boolean copy,
long offset) |
CudaDoubleDataBuffer(float[] data) |
CudaDoubleDataBuffer(float[] data,
boolean copy) |
CudaDoubleDataBuffer(float[] data,
boolean copy,
long offset) |
CudaDoubleDataBuffer(int[] data) |
CudaDoubleDataBuffer(int[] data,
boolean copy) |
CudaDoubleDataBuffer(int[] data,
boolean copy,
long offset) |
CudaDoubleDataBuffer(long length)
Base constructor
|
CudaDoubleDataBuffer(long length,
boolean initialize) |
CudaDoubleDataBuffer(long length,
int elementSize) |
CudaDoubleDataBuffer(long length,
int elementSize,
long offset) |
Modifier and Type | Method and Description |
---|---|
void |
assign(long[] indices,
double[] data,
boolean contiguous,
long inc) |
void |
assign(long[] indices,
float[] data,
boolean contiguous,
long inc) |
DataBuffer |
create(io.netty.buffer.ByteBuf buf,
int length) |
DataBuffer |
create(double[] data) |
DataBuffer |
create(float[] data) |
DataBuffer |
create(int[] data) |
protected DataBuffer |
create(long length) |
protected void |
initTypeAndSize()
Initialize the type of this buffer
|
void |
setData(float[] data) |
void |
setData(int[] data) |
addReferencing, address, allocationMode, asBytes, asDouble, asFloat, asInt, asNetty, asNio, asNioDouble, asNioFloat, asNioInt, assign, copyAtStride, destroy, dup, equals, flush, getComplex, getComplexDouble, getComplexFloat, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getHostBuffer, getHostPointer, getHostPointer, getHostPointer, getInt, getNumber, put, put, put, put, read, references, removeReferencing, sameUnderlyingData, set, set, set, set, set, set, set, setData, setNioBuffer, toString
addressPointer, array, assign, assign, assign, assign, assign, assign, assign, dataType, dirty, doReadObject, getTrackingPoint, hashCode, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, read, setConstant, setTrackingPoint, underlyingDataBuffer, underlyingLength, unPersist, write, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addressPointer, array, assign, assign, assign, assign, assign, assign, assign, dataType, dirty, getTrackingPoint, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, read, setConstant, setTrackingPoint, underlyingDataBuffer, underlyingLength, unPersist, write, write
public CudaDoubleDataBuffer(long length)
length
- the length of the bufferpublic CudaDoubleDataBuffer(long length, boolean initialize)
public CudaDoubleDataBuffer(long length, int elementSize)
public CudaDoubleDataBuffer(long length, int elementSize, long offset)
public CudaDoubleDataBuffer(DataBuffer underlyingBuffer, long length, long offset)
public CudaDoubleDataBuffer(double[] data)
data
- the data to instantiate withpublic CudaDoubleDataBuffer(double[] data, boolean copy)
public CudaDoubleDataBuffer(double[] data, boolean copy, long offset)
public CudaDoubleDataBuffer(float[] data)
public CudaDoubleDataBuffer(float[] data, boolean copy)
public CudaDoubleDataBuffer(float[] data, boolean copy, long offset)
public CudaDoubleDataBuffer(int[] data)
public CudaDoubleDataBuffer(int[] data, boolean copy)
public CudaDoubleDataBuffer(int[] data, boolean copy, long offset)
public CudaDoubleDataBuffer(io.netty.buffer.ByteBuf buf, long length)
public CudaDoubleDataBuffer(io.netty.buffer.ByteBuf buf, long length, long offset)
public CudaDoubleDataBuffer(byte[] data, long length)
public CudaDoubleDataBuffer(ByteBuffer buffer, long length)
public CudaDoubleDataBuffer(ByteBuffer buffer, long length, long 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 void setData(int[] data)
setData
in interface DataBuffer
setData
in class BaseCudaDataBuffer
public void setData(float[] data)
setData
in interface DataBuffer
setData
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 DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
create
in class BaseDataBuffer
Copyright © 2016. All Rights Reserved.