public class CudaDoubleDataBuffer 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 |
---|
CudaDoubleDataBuffer(byte[] data,
long length) |
CudaDoubleDataBuffer(ByteBuffer buffer,
long length) |
CudaDoubleDataBuffer(ByteBuffer buffer,
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) |
CudaDoubleDataBuffer(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 |
---|---|
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) |
protected void |
initTypeAndSize()
Initialize the type of this buffer
|
void |
setData(float[] data) |
void |
setData(int[] data) |
addReferencing, address, allocationMode, asBytes, asDouble, asFloat, asInt, asNio, asNioDouble, asNioFloat, asNioInt, assign, copyAtStride, destroy, dup, equals, flush, getComplex, getComplexDouble, getComplexFloat, getDouble, getElementSize, getFloat, getHostBuffer, getHostPointer, getHostPointer, getHostPointer, getInt, getNumber, put, put, put, put, read, references, removeReferencing, sameUnderlyingData, set, set, set, set, set, set, set, setData, setNioBuffer, toString, write, write
addressPointer, array, assign, assign, assign, assign, assign, assign, assign, dataType, dirty, doReadObject, fromFloat, getDoublesAt, getDoublesAt, getFloatsAt, 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, dataType, dirty, getDoublesAt, getDoublesAt, getFloatsAt, getFloatsAt, getTrackingPoint, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, read, setConstant, setTrackingPoint, underlyingDataBuffer, underlyingLength, unPersist
public CudaDoubleDataBuffer(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 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(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
Copyright © 2016. All Rights Reserved.