gnu.lists

Class F64Vector

public class F64Vector extends SimpleVector implements Externalizable, Comparable

Simple adjustable-length vector whose elements are 64-bit floats.
Field Summary
protected static double[]empty
Constructor Summary
F64Vector()
F64Vector(int size, double value)
F64Vector(int size)
F64Vector(double[] data)
F64Vector(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)
doubledoubleAt(int index)
doubledoubleAtBuffer(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)
voidsetDoubleAt(int index, double value)
voidsetDoubleAtBuffer(int index, double value)
voidwriteExternal(ObjectOutput out)

Field Detail

empty

protected static double[] empty

Constructor Detail

F64Vector

public F64Vector()

F64Vector

public F64Vector(int size, double value)

F64Vector

public F64Vector(int size)

F64Vector

public F64Vector(double[] data)

F64Vector

public F64Vector(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)

doubleAt

public final double doubleAt(int index)

doubleAtBuffer

public final double doubleAtBuffer(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)

setDoubleAt

public final void setDoubleAt(int index, double value)

setDoubleAtBuffer

public final void setDoubleAtBuffer(int index, double value)

writeExternal

public void writeExternal(ObjectOutput out)

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