|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.context.RealtimeObject
org.jscience.mathematics.vectors.Vector<Float64>
org.jscience.mathematics.vectors.Float64Vector
public final class Float64Vector
This class represents an optimized vector implementation
for 64 bits floating point elements.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javolution.context.RealtimeObject |
|---|
RealtimeObject.Factory<T extends RealtimeObject> |
| Nested classes/interfaces inherited from interface javolution.context.Realtime |
|---|
Realtime.ObjectSpace |
| Field Summary | |
|---|---|
protected static XMLFormat<Float64Vector> |
XML
Holds the default XML representation. |
| Method Summary | |
|---|---|
Float64Vector |
cross(Vector<Float64> that)
Returns the cross product of two 3-dimensional vectors. |
Float64 |
get(int i)
Returns a single element from this vector. |
int |
getDimension()
Returns the number of elements held by this vector. |
double |
getValue(int i)
Returns the value of a floating point number from this vector (fast). |
Float64Vector |
minus(Vector<Float64> that)
Returns the difference between this vector and the one specified. |
Float64 |
norm()
Returns the Euclidian norm of this vector (square root of the dot product of this vector and itself). |
double |
normValue()
Returns the norm() value of this vector. |
Float64Vector |
opposite()
Returns the negation of this vector. |
Float64Vector |
plus(Vector<Float64> that)
Returns the sum of this vector with the one specified. |
Float64Vector |
times(double k)
Equivalent to this.times(Float64.valueOf(k)) |
Float64Vector |
times(Float64 k)
Returns the product of this vector with the specified coefficient. |
Float64 |
times(Vector<Float64> that)
Returns the dot product of this vector with the one specified. |
static Float64Vector |
valueOf(double... values)
Returns a new vector holding the specified double values. |
static Float64Vector |
valueOf(double x)
Returns a one-dimensional vector holding the specified double value. |
static Float64Vector |
valueOf(double x,
double y)
Returns a two-dimensional vector holding the specified double values. |
static Float64Vector |
valueOf(double x,
double y,
double z)
Returns a three-dimensional vector holding the specified double values. |
static Float64Vector |
valueOf(java.util.List<Float64> elements)
Returns a new vector holding the elements from the specified collection. |
static Float64Vector |
valueOf(Vector<Float64> that)
Returns a Float64Vector instance equivalent to the
specified vector. |
| Methods inherited from class org.jscience.mathematics.vectors.Vector |
|---|
equals, equals, hashCode, toText, valueOf |
| Methods inherited from class javolution.context.RealtimeObject |
|---|
export, isLocal, move, moveHeap, preserve, toString, unpreserve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javolution.context.Realtime |
|---|
move, toText |
| Field Detail |
|---|
protected static final XMLFormat<Float64Vector> XML
<Float64Vector dimension="2">
<Float64 value="1.0" />
<Float64 value="0.0" />
</Float64Vector>
| Method Detail |
|---|
public static Float64Vector valueOf(double x)
double value.
x - the vector value.
public static Float64Vector valueOf(double x,
double y)
double values.
x - the first vector value.y - the second vector value.
public static Float64Vector valueOf(double x,
double y,
double z)
double values.
x - the first vector value.y - the second vector value.z - the third vector value.
public static Float64Vector valueOf(double... values)
double values.
values - the vector values.
public static Float64Vector valueOf(java.util.List<Float64> elements)
elements - the collection of floating-points numbers.
public static Float64Vector valueOf(Vector<Float64> that)
Float64Vector instance equivalent to the
specified vector.
that - the vector to convert.
that or new equivalent Float64Vector.public double getValue(int i)
i - the floating point number index.
i.
java.lang.IndexOutOfBoundsException - (i < 0) || (i >= dimension())public Float64 norm()
norm in interface VectorSpaceNormed<Vector<Float64>,Float64>sqrt(this · this).public double normValue()
norm() value of this vector.
this.norm().doubleValue().public int getDimension()
Vector
getDimension in class Vector<Float64>public Float64 get(int i)
Vector
get in class Vector<Float64>i - the element index (range [0..n[).
i.public Float64Vector opposite()
Vector
opposite in interface GroupAdditive<Vector<Float64>>opposite in class Vector<Float64>-this.public Float64Vector plus(Vector<Float64> that)
Vector
plus in interface GroupAdditive<Vector<Float64>>plus in class Vector<Float64>that - the vector to be added.
this + that.public Float64Vector minus(Vector<Float64> that)
Vector
minus in class Vector<Float64>that - the vector to be subtracted.
this - that.public Float64Vector times(Float64 k)
Vector
times in interface VectorSpace<Vector<Float64>,Float64>times in class Vector<Float64>k - the coefficient multiplier.
this · kpublic Float64Vector times(double k)
this.times(Float64.valueOf(k))
k - the coefficient.
this * kpublic Float64 times(Vector<Float64> that)
Vector
times in class Vector<Float64>that - the vector multiplier.
this · thatpublic Float64Vector cross(Vector<Float64> that)
Vector
cross in class Vector<Float64>that - the vector multiplier.
this x that
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||