public class FloatBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type
allocationMode, constant, dirty, elementSize, globalType, indexer, isPersist, length, offset, originalBuffer, originalOffset, pointer, referencing, trackingPoint, type, underlyingLength, wrappedBuffer, wrappedDataBuffer
Constructor and Description |
---|
FloatBuffer(byte[] data,
int length) |
FloatBuffer(ByteBuffer buffer,
int length) |
FloatBuffer(ByteBuffer buffer,
int length,
int offset) |
FloatBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
FloatBuffer(double[] data) |
FloatBuffer(double[] data,
boolean copyOnOps) |
FloatBuffer(double[] data,
boolean copy,
int offset) |
FloatBuffer(float[] data) |
FloatBuffer(float[] floats,
boolean copy) |
FloatBuffer(float[] data,
boolean copy,
int offset) |
FloatBuffer(int[] data) |
FloatBuffer(int[] data,
boolean copyOnOps) |
FloatBuffer(int[] data,
boolean copy,
int offset) |
FloatBuffer(int length,
int elementSize) |
FloatBuffer(int length,
int elementSize,
int offset) |
FloatBuffer(long length)
Create a float buffer with the given length
|
FloatBuffer(long length,
boolean initialize) |
FloatBuffer(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 |
---|---|
DataBuffer |
create(double[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
create(float[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
protected DataBuffer |
create(long length)
Create with length
|
IComplexDouble |
getComplexDouble(long i)
Get the complex double at the specified index
|
IComplexFloat |
getComplexFloat(long i)
Get the complex float
|
protected void |
initTypeAndSize()
Initialize the type of this buffer
|
addReferencing, address, addressPointer, allocationMode, array, asBytes, asDouble, asFloat, asInt, asNio, asNioDouble, asNioFloat, asNioInt, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, flush, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getInt, getNumber, getTrackingPoint, hashCode, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setNioBuffer, setTrackingPoint, toString, underlyingDataBuffer, underlyingLength, unPersist, write, write
public FloatBuffer(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 FloatBuffer(long length)
length
- the float buffer with the given lengthpublic FloatBuffer(long length, boolean initialize)
public FloatBuffer(int length, int elementSize)
public FloatBuffer(int length, int elementSize, int offset)
public FloatBuffer(DataBuffer underlyingBuffer, long length, long offset)
public FloatBuffer(float[] data)
public FloatBuffer(int[] data)
public FloatBuffer(double[] data)
public FloatBuffer(int[] data, boolean copyOnOps)
public FloatBuffer(int[] data, boolean copy, int offset)
public FloatBuffer(double[] data, boolean copyOnOps)
public FloatBuffer(double[] data, boolean copy, int offset)
public FloatBuffer(ByteBuffer buffer, int length)
public FloatBuffer(ByteBuffer buffer, int length, int offset)
public FloatBuffer(byte[] data, int length)
public FloatBuffer(float[] floats, boolean copy)
public FloatBuffer(float[] data, boolean copy, int offset)
protected void initTypeAndSize()
initTypeAndSize
in class BaseDataBuffer
public IComplexFloat getComplexFloat(long i)
DataBuffer
getComplexFloat
in interface DataBuffer
getComplexFloat
in class BaseDataBuffer
i
- the i togetepublic IComplexDouble getComplexDouble(long i)
DataBuffer
getComplexDouble
in interface DataBuffer
getComplexDouble
in class BaseDataBuffer
i
- the indexprotected DataBuffer create(long length)
BaseDataBuffer
create
in class BaseDataBuffer
length
- a databuffer of the same type as
this with the given lengthpublic DataBuffer create(double[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createCopyright © 2016. All Rights Reserved.