gnu.lists

Class F32Vector

public class F32Vector extends SimpleVector implements Externalizable, Comparable

Simple adjustable-length vector whose elements are 32-bit floats.
Field Summary
protected static float[]empty
Constructor Summary
F32Vector()
F32Vector(int size, float value)
F32Vector(int size)
F32Vector(float[] data)
F32Vector(Sequence seq)
Method Summary
protected voidclearBuffer(int start, int count)
intcompareTo(Object obj)
booleanconsumeNext(int ipos, Consumer out)
voidconsumePosRange(int iposStart, int iposEnd, Consumer out)
floatfloatAt(int index)
floatfloatAtBuffer(int index)
Objectget(int index)
protected ObjectgetBuffer()
ObjectgetBuffer(int index)
intgetBufferLength()
Get the allocated length of the data buffer.
intgetElementKind()
StringgetTag()
intintAtBuffer(int index)
voidreadExternal(ObjectInput in)
ObjectsetBuffer(int index, Object value)
voidsetBufferLength(int length)
voidsetFloatAt(int index, float value)
voidsetFloatAtBuffer(int index, float value)
voidwriteExternal(ObjectOutput out)

Field Detail

empty

protected static float[] empty

Constructor Detail

F32Vector

public F32Vector()

F32Vector

public F32Vector(int size, float value)

F32Vector

public F32Vector(int size)

F32Vector

public F32Vector(float[] data)

F32Vector

public F32Vector(Sequence seq)

Method Detail

clearBuffer

protected void clearBuffer(int start, int count)

compareTo

public int compareTo(Object obj)

consumeNext

public boolean consumeNext(int ipos, Consumer out)

consumePosRange

public void consumePosRange(int iposStart, int iposEnd, Consumer out)

floatAt

public final float floatAt(int index)

floatAtBuffer

public final float floatAtBuffer(int index)

get

public final Object get(int index)

getBuffer

protected Object getBuffer()

getBuffer

public final Object getBuffer(int index)

getBufferLength

public int getBufferLength()
Get the allocated length of the data buffer.

getElementKind

public int getElementKind()

getTag

public String getTag()

intAtBuffer

public final int intAtBuffer(int index)

readExternal

public void readExternal(ObjectInput in)

setBuffer

public final Object setBuffer(int index, Object value)

setBufferLength

public void setBufferLength(int length)

setFloatAt

public final void setFloatAt(int index, float value)

setFloatAtBuffer

public final void setFloatAtBuffer(int index, float value)

writeExternal

public void writeExternal(ObjectOutput out)

Serial Data: Write 'size' (using writeInt), followed by 'size' elements in order (using writeFloat).