public class FloatBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeExallocationMode, attached, constant, elementSize, indexer, length, offset, originalBuffer, originalOffset, parentWorkspace, pointer, trackingPoint, type, underlyingLength, wrappedDataBuffer| Constructor and Description |
|---|
FloatBuffer(byte[] data,
int length) |
FloatBuffer(ByteBuffer buffer,
int length) |
FloatBuffer(ByteBuffer buffer,
int length,
long offset) |
FloatBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
FloatBuffer(double[] data) |
FloatBuffer(double[] data,
boolean copyOnOps) |
FloatBuffer(double[] data,
boolean copy,
long offset) |
FloatBuffer(float[] data) |
FloatBuffer(float[] floats,
boolean copy) |
FloatBuffer(float[] data,
boolean copy,
long offset) |
FloatBuffer(float[] data,
boolean copy,
long offset,
MemoryWorkspace workspace) |
FloatBuffer(float[] floats,
boolean copy,
MemoryWorkspace workspace) |
FloatBuffer(float[] data,
MemoryWorkspace workspace) |
FloatBuffer(int[] data) |
FloatBuffer(int[] data,
boolean copyOnOps) |
FloatBuffer(int[] data,
boolean copy,
long offset) |
FloatBuffer(int length,
int elementSize) |
FloatBuffer(int length,
int elementSize,
long offset) |
FloatBuffer(long length)
Create a float buffer with the given length
|
FloatBuffer(long length,
boolean initialize) |
FloatBuffer(long length,
boolean initialize,
MemoryWorkspace workspace) |
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, capacity, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, flush, fromFloat, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getInt, getLong, getNumber, getParentWorkspace, getShort, getTrackingPoint, hashCode, indexer, isAttached, isConstant, isInScope, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, readContent, reallocate, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setIndexer, setNioBuffer, setTrackingPoint, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wrappedBuffer, write, writepublic 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(long length,
boolean initialize,
MemoryWorkspace workspace)
public FloatBuffer(int length,
int elementSize)
public FloatBuffer(int length,
int elementSize,
long offset)
public FloatBuffer(DataBuffer underlyingBuffer, long length, long offset)
public FloatBuffer(float[] data)
public FloatBuffer(float[] data,
MemoryWorkspace workspace)
public FloatBuffer(int[] data)
public FloatBuffer(double[] data)
public FloatBuffer(int[] data,
boolean copyOnOps)
public FloatBuffer(int[] data,
boolean copy,
long offset)
public FloatBuffer(double[] data,
boolean copyOnOps)
public FloatBuffer(double[] data,
boolean copy,
long offset)
public FloatBuffer(ByteBuffer buffer, int length)
public FloatBuffer(ByteBuffer buffer, int length, long offset)
public FloatBuffer(byte[] data,
int length)
public FloatBuffer(float[] floats,
boolean copy)
public FloatBuffer(float[] floats,
boolean copy,
MemoryWorkspace workspace)
public FloatBuffer(float[] data,
boolean copy,
long offset)
public FloatBuffer(float[] data,
boolean copy,
long offset,
MemoryWorkspace workspace)
protected void initTypeAndSize()
initTypeAndSize in class BaseDataBufferpublic IComplexFloat getComplexFloat(long i)
DataBuffergetComplexFloat in interface DataBuffergetComplexFloat in class BaseDataBufferi - the i togetepublic IComplexDouble getComplexDouble(long i)
DataBuffergetComplexDouble in interface DataBuffergetComplexDouble in class BaseDataBufferi - the indexprotected DataBuffer create(long length)
BaseDataBuffercreate in class BaseDataBufferlength - a databuffer of the same type as
this with the given lengthpublic DataBuffer create(double[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createCopyright © 2017. All rights reserved.