public class CudaFloatDataBuffer 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 |
---|
CudaFloatDataBuffer(byte[] data,
long length) |
CudaFloatDataBuffer(ByteBuffer buffer,
long length) |
CudaFloatDataBuffer(ByteBuffer buffer,
long length,
int offset) |
CudaFloatDataBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
CudaFloatDataBuffer(double[] data) |
CudaFloatDataBuffer(double[] data,
boolean copy) |
CudaFloatDataBuffer(double[] data,
boolean copy,
int offset) |
CudaFloatDataBuffer(float[] buffer) |
CudaFloatDataBuffer(float[] data,
boolean copy) |
CudaFloatDataBuffer(float[] data,
boolean copy,
int offset) |
CudaFloatDataBuffer(int[] data) |
CudaFloatDataBuffer(int[] data,
boolean copy) |
CudaFloatDataBuffer(int[] data,
boolean copy,
int offset) |
CudaFloatDataBuffer(long length)
Base constructor
|
CudaFloatDataBuffer(long length,
boolean initialize) |
CudaFloatDataBuffer(long length,
int elementSize) |
CudaFloatDataBuffer(long length,
int elementSize,
long offset) |
CudaFloatDataBuffer(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() |
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) |
protected void |
initTypeAndSize()
Initialize the type of this buffer
|
void |
setData(double[] data) |
void |
setData(int[] data) |
addReferencing, address, allocationMode, asFloat, 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, setData, setNioBuffer, toString, write, write
addressPointer, array, assign, assign, assign, assign, assign, assign, assign, dirty, doReadObject, fromFloat, 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, dirty, getDoublesAt, getFloatsAt, getFloatsAt, getTrackingPoint, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, read, setConstant, setTrackingPoint, underlyingDataBuffer, underlyingLength, unPersist
public CudaFloatDataBuffer(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 CudaFloatDataBuffer(long length)
length
- the length of the bufferpublic CudaFloatDataBuffer(long length, boolean initialize)
public CudaFloatDataBuffer(long length, int elementSize)
public CudaFloatDataBuffer(long length, int elementSize, long offset)
public CudaFloatDataBuffer(DataBuffer underlyingBuffer, long length, long offset)
public CudaFloatDataBuffer(float[] buffer)
public CudaFloatDataBuffer(float[] data, boolean copy)
public CudaFloatDataBuffer(float[] data, boolean copy, int offset)
public CudaFloatDataBuffer(double[] data)
public CudaFloatDataBuffer(double[] data, boolean copy)
public CudaFloatDataBuffer(double[] data, boolean copy, int offset)
public CudaFloatDataBuffer(int[] data)
public CudaFloatDataBuffer(int[] data, boolean copy)
public CudaFloatDataBuffer(int[] data, boolean copy, int offset)
public CudaFloatDataBuffer(byte[] data, long length)
public CudaFloatDataBuffer(ByteBuffer buffer, long length)
public CudaFloatDataBuffer(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 double[] getDoublesAt(long offset, long inc, int length)
getDoublesAt
in interface DataBuffer
getDoublesAt
in class BaseDataBuffer
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 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.