public class F32Vector extends SimpleVector implements java.io.Externalizable, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected static float[] |
empty |
size
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE
Constructor and Description |
---|
F32Vector() |
F32Vector(float[] data) |
F32Vector(int size) |
F32Vector(int size,
float value) |
F32Vector(Sequence seq) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearBuffer(int start,
int count) |
int |
compareTo(java.lang.Object obj) |
boolean |
consumeNext(int ipos,
Consumer out)
Copy an element specified by a position pair to a Consumer.
|
void |
consumePosRange(int iposStart,
int iposEnd,
Consumer out) |
float |
floatAt(int index) |
float |
floatAtBuffer(int index) |
java.lang.Object |
get(int index)
See java.util.List.
|
protected java.lang.Object |
getBuffer() |
java.lang.Object |
getBuffer(int index) |
int |
getBufferLength()
Get the allocated length of the data buffer.
|
int |
getElementKind() |
java.lang.String |
getTag()
This is convenience hack for printing "uniform vectors" (srfi 4).
|
int |
intAtBuffer(int index) |
void |
readExternal(java.io.ObjectInput in) |
java.lang.Object |
setBuffer(int index,
java.lang.Object value) |
void |
setBufferLength(int length) |
void |
setFloatAt(int index,
float value) |
void |
setFloatAtBuffer(int index,
float value) |
void |
writeExternal(java.io.ObjectOutput out) |
add, add, addAll, addPos, clear, compareToInt, compareToLong, consume, createPos, fill, fill, fillPosRange, getNextKind, getPosNext, getRowMajor, intAt, isAfterPos, longAt, longAtBuffer, nextIndex, nextPos, remove, remove, removeAll, removePos, removePosRange, resizeShift, retainAll, set, setSize, shift, size, transpose
addAll, compare, compare, compare, consume, contains, containsAll, copyPos, createRelativePos, elements, endPos, equals, equals, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextTypeName, getNextTypeObject, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, releasePos, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedException
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArray
consume
get, getEffectiveIndex, getLowBound, getSize, isEmpty, rank, set
public F32Vector()
public F32Vector(int size, float value)
public F32Vector(int size)
public F32Vector(float[] data)
public F32Vector(Sequence seq)
public int getBufferLength()
getBufferLength
in class SimpleVector
public void setBufferLength(int length)
setBufferLength
in class SimpleVector
protected java.lang.Object getBuffer()
getBuffer
in class SimpleVector
public final int intAtBuffer(int index)
intAtBuffer
in class SimpleVector
public final float floatAt(int index)
public final float floatAtBuffer(int index)
public final java.lang.Object get(int index)
AbstractSequence
get
in interface Sequence
get
in interface java.util.List
get
in class SimpleVector
public final java.lang.Object getBuffer(int index)
getBuffer
in class SimpleVector
public final void setFloatAt(int index, float value)
public final void setFloatAtBuffer(int index, float value)
public final java.lang.Object setBuffer(int index, java.lang.Object value)
setBuffer
in class SimpleVector
protected void clearBuffer(int start, int count)
clearBuffer
in class SimpleVector
public int getElementKind()
getElementKind
in class SimpleVector
public java.lang.String getTag()
SimpleVector
getTag
in class SimpleVector
public boolean consumeNext(int ipos, Consumer out)
AbstractSequence
consumeNext
in class SimpleVector
public void consumePosRange(int iposStart, int iposEnd, Consumer out)
consumePosRange
in class SimpleVector
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException