public final class Float64Vector extends Vector<Float64> implements VectorSpaceNormed<Vector<Float64>,Float64>
This class represents an optimized vector implementation
for 64 bits floating point elements.
| Modifier and Type | Method and Description |
|---|---|
Float64Vector |
copy()
Returns a copy of this vector
allocated
by the calling thread (possibly on the stack). |
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(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. |
public static Float64Vector valueOf(double... values)
double values.values - the vector values.public static Float64Vector valueOf(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.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()
VectorgetDimension in class Vector<Float64>public Float64 get(int i)
Vectorpublic Float64Vector opposite()
Vectorpublic Float64Vector plus(Vector<Float64> that)
Vectorpublic Float64Vector minus(Vector<Float64> that)
Vectorpublic Float64Vector times(Float64 k)
Vectorpublic Float64Vector times(double k)
this.times(Float64.valueOf(k))k - the coefficient.this * kpublic Float64 times(Vector<Float64> that)
Vectortimes in class Vector<Float64>that - the vector multiplier.this · thatpublic Float64Vector cross(Vector<Float64> that)
Vectorpublic Float64Vector copy()
Vectorallocated
by the calling thread (possibly on the stack).