RealVector

class RealVector(entries: DoubleArray)

Real vector of double values, whereby the number of provided values defines the dimension of the vector.

Parameters

entries

entry values of the real vector

Constructors

Link copied to clipboard
constructor(entries: List<Double>)
constructor(entries: DoubleArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

dimension of the vector

Link copied to clipboard

L_2 norm of the vector

Functions

Link copied to clipboard

Returns true, if any entry of this vector is Infinite.

Link copied to clipboard

Returns true, if any entry of this vector is NaN.

Link copied to clipboard

Returns the dot product of this with the other.

Link copied to clipboard

Returns the element-by-element division of this with the other.

Link copied to clipboard

Returns the element-by-element product of this with the other.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(index: Int): Double
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Multiplies each entry with factor and returns the RealVector.

Link copied to clipboard
operator fun minus(v: RealVector): RealVector
Link copied to clipboard

Returns the normalized vector.

Link copied to clipboard
operator fun plus(v: RealVector): RealVector
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toVectorCM(): ArrayRealVector

Conversion to adapted Real Vector class from Apache Commons Math.