public class CudaFloatDataBuffer 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 |
---|
CudaFloatDataBuffer(byte[] data,
long length) |
CudaFloatDataBuffer(ByteBuffer buffer,
long length) |
CudaFloatDataBuffer(ByteBuffer buffer,
long length,
int offset) |
CudaFloatDataBuffer(io.netty.buffer.ByteBuf buf,
long length) |
CudaFloatDataBuffer(io.netty.buffer.ByteBuf buf,
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) |
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(io.netty.buffer.ByteBuf buf,
int length) |
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, asNetty, asNio, asNioDouble, asNioFloat, asNioInt, assign, copyAtStride, destroy, dup, equals, getComplex, getComplexDouble, getComplexFloat, 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, 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, dirty, getTrackingPoint, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, read, setConstant, setTrackingPoint, underlyingDataBuffer, underlyingLength, unPersist, write, write
public 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(io.netty.buffer.ByteBuf buf, long length)
public CudaFloatDataBuffer(io.netty.buffer.ByteBuf buf, long length, 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 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 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 DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
create
in class BaseDataBuffer
public void flush()
flush
in interface DataBuffer
flush
in class BaseCudaDataBuffer
Copyright © 2016. All Rights Reserved.