\n\n\n\nFloat64Vector\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n
\n
\n
\n\n\n\n
\n
org.jscience.mathematics.vector
\n

## Class Float64Vector

\n
\n
\n
\n
\n
\n
\n
\n
\n
• \n\n
\n
• \n\n\n

### Method Summary

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Methods
Modifier and TypeMethod and Description
`Float64Vector``copy()`\n
Returns a copy of this vector \n `allocated` \n by the calling thread (possibly on the stack).
\n
`Float64Vector``cross(Vector<Float64> that)`\n
Returns the cross product of two 3-dimensional vectors.
\n
`Float64``get(int i)`\n
Returns a single element from this vector.
\n
`int``getDimension()`\n
Returns the number of elements held by this vector.
\n
`double``getValue(int i)`\n
Returns the value of a floating point number from this vector (fast).
\n
`Float64Vector``minus(Vector<Float64> that)`\n
Returns the difference between this vector and the one specified.
\n
`Float64``norm()`\n
Returns the Euclidian norm of this vector (square root of the \n dot product of this vector and itself).
\n
`double``normValue()`\n
Returns the `norm()` value of this vector.
\n
`Float64Vector``opposite()`\n
Returns the negation of this vector.
\n
`Float64Vector``plus(Vector<Float64> that)`\n
Returns the sum of this vector with the one specified.
\n
`Float64Vector``times(double k)`\n
Equivalent to `this.times(Float64.valueOf(k))`
\n
`Float64Vector``times(Float64 k)`\n
Returns the product of this vector with the specified coefficient.
\n
`Float64``times(Vector<Float64> that)`\n
Returns the dot product of this vector with the one specified.
\n
`static Float64Vector``valueOf(double... values)`\n
Returns a new vector holding the specified `double` values.
\n
`static Float64Vector``valueOf(List<Float64> elements)`\n
Returns a new vector holding the elements from the specified \n collection.
\n
`static Float64Vector``valueOf(Vector<Float64> that)`\n
Returns a `Float64Vector` instance equivalent to the \n specified vector.
\n
\n
\n
• \n\n\n

### Methods inherited from class org.jscience.mathematics.vector.Vector

\n`equals, equals, hashCode, toString, toText`
• \n
\n
\n
• \n\n\n

### Methods inherited from class java.lang.Object

\n`getClass, notify, notifyAll, wait, wait, wait`
• \n
\n
• \n
\n
• \n
\n
\n
\n
\n
• \n\n
\n
• \n\n\n

### Method Detail

\n\n\n\n
\n
• \n

#### valueOf

\n
`public static Float64Vector valueOf(double... values)`
\n
Returns a new vector holding the specified `double` values.
\n
Parameters:
`values` - the vector values.
\n
Returns:
the vector having the specified values.
\n
• \n
\n\n\n\n
\n
• \n

#### valueOf

\n
`public static Float64Vector valueOf(List<Float64> elements)`
\n
Returns a new vector holding the elements from the specified \n collection.
\n
Parameters:
`elements` - the collection of floating-points numbers.
\n
Returns:
the vector having the specified elements.
\n
• \n
\n\n\n\n
\n
• \n

#### valueOf

\n
`public static Float64Vector valueOf(Vector<Float64> that)`
\n
Returns a `Float64Vector` instance equivalent to the \n specified vector.
\n
Parameters:
`that` - the vector to convert.
\n
Returns:
`that` or new equivalent Float64Vector.
\n
• \n
\n\n\n\n
\n
• \n

#### getValue

\n
`public double getValue(int i)`
\n
Returns the value of a floating point number from this vector (fast).
\n
Parameters:
`i` - the floating point number index.
\n
Returns:
the value of the floating point number at `i`.
\n
Throws:
\n
`IndexOutOfBoundsException` - `(i < 0) || (i >= dimension())`
\n
• \n
\n\n\n\n
\n
• \n

#### norm

\n
`public Float64 norm()`
\n
Returns the Euclidian norm of this vector (square root of the \n dot product of this vector and itself).
\n
\n
Specified by:
\n
`norm` in interface `VectorSpaceNormed<Vector<Float64>,Float64>`
\n
Returns:
`sqrt(this \xc2\xb7 this)`.
\n Wikipedia: Vector Norm
\n
• \n
\n\n\n\n
\n
• \n

#### normValue

\n
`public double normValue()`
\n
Returns the `norm()` value of this vector.
\n
Returns:
`this.norm().doubleValue()`.
\n
• \n
\n\n\n\n
\n
• \n

#### getDimension

\n
`public int getDimension()`
\n
Description copied from class: `Vector`
\n
Returns the number of elements held by this vector.
\n
\n
Specified by:
\n
`getDimension` in class `Vector<Float64>`
\n
Returns:
this vector dimension.
\n
• \n
\n\n\n\n
\n
• \n

#### get

\n
`public Float64 get(int i)`
\n
Description copied from class: `Vector`
\n
Returns a single element from this vector.
\n
\n
Specified by:
\n
`get` in class `Vector<Float64>`
\n
Parameters:
`i` - the element index (range [0..n[).
\n
Returns:
the element at `i`.
\n
• \n
\n\n\n\n
\n
• \n

#### opposite

\n
`public Float64Vector opposite()`
\n
Description copied from class: `Vector`
\n
Returns the negation of this vector.
\n
\n
Specified by:
\n
`opposite` in interface `GroupAdditive<Vector<Float64>>`
\n
Specified by:
\n
`opposite` in class `Vector<Float64>`
\n
Returns:
`-this`.
\n
• \n
\n\n\n\n
\n
• \n

#### plus

\n
`public Float64Vector plus(Vector<Float64> that)`
\n
Description copied from class: `Vector`
\n
Returns the sum of this vector with the one specified.
\n
\n
Specified by:
\n
`plus` in interface `GroupAdditive<Vector<Float64>>`
\n
Specified by:
\n
`plus` in class `Vector<Float64>`
\n
Parameters:
`that` - the vector to be added.
\n
Returns:
`this + that`.
\n
• \n
\n\n\n\n
\n
• \n

#### minus

\n
`public Float64Vector minus(Vector<Float64> that)`
\n
Description copied from class: `Vector`
\n
Returns the difference between this vector and the one specified.
\n
\n
Overrides:
\n
`minus` in class `Vector<Float64>`
\n
Parameters:
`that` - the vector to be subtracted.
\n
Returns:
`this - that`.
\n
• \n
\n\n\n\n
\n
• \n

#### times

\n
`public Float64Vector times(Float64 k)`
\n
Description copied from class: `Vector`
\n
Returns the product of this vector with the specified coefficient.
\n
\n
Specified by:
\n
`times` in interface `VectorSpace<Vector<Float64>,Float64>`
\n
Specified by:
\n
`times` in class `Vector<Float64>`
\n
Parameters:
`k` - the coefficient multiplier.
\n
Returns:
`this \xc2\xb7 k`
\n
• \n
\n\n\n\n
\n
• \n

#### times

\n
`public Float64Vector times(double k)`
\n
Equivalent to `this.times(Float64.valueOf(k))`
\n
Parameters:
`k` - the coefficient.
\n
Returns:
`this * k`
\n
• \n
\n\n\n\n
\n
• \n

#### times

\n
`public Float64 times(Vector<Float64> that)`
\n
Description copied from class: `Vector`
\n
Returns the dot product of this vector with the one specified.
\n
\n
Specified by:
\n
`times` in class `Vector<Float64>`
\n
Parameters:
`that` - the vector multiplier.
\n
Returns:
`this \xc2\xb7 that`
\n Wikipedia: Dot Product
\n
• \n
\n\n\n\n
\n
• \n

#### cross

\n
`public Float64Vector cross(Vector<Float64> that)`
\n
Description copied from class: `Vector`
\n
Returns the cross product of two 3-dimensional vectors.
\n
\n
Overrides:
\n
`cross` in class `Vector<Float64>`
\n
Parameters:
`that` - the vector multiplier.
\n
Returns:
`this x that`
\n
• \n
\n\n\n\n
\n
• \n

#### copy

\n
`public Float64Vector copy()`
\n
Description copied from class: `Vector`
\n
Returns a copy of this vector \n `allocated` \n by the calling thread (possibly on the stack).
\n
\n
Specified by:
\n
`copy` in interface `javolution.lang.ValueType`
\n
Specified by:
\n
`copy` in class `Vector<Float64>`
\n
Returns:
an identical and independant copy of this matrix.
\n
• \n
\n
• \n
\n
• \n
\n
\n
\n\n\n
\n\n\n\n\n
\n
\n
\n\n\n