Class/Object

org.apache.flink.ml.math

DenseVector

Related Docs: object DenseVector | package math

Permalink

case class DenseVector(data: Array[Double]) extends Vector with Serializable with Product

Dense vector implementation of Vector. The data is represented in a continuous array of doubles.

data

Array of doubles to store the vector elements

Linear Supertypes
Product, Equals, Vector, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DenseVector
  2. Product
  3. Equals
  4. Vector
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DenseVector(data: Array[Double])

    Permalink

    data

    Array of doubles to store the vector elements

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(index: Int): Double

    Permalink

    Element wise access function

    Element wise access function

    index

    index of the accessed element

    returns

    element at the given index

    Definition Classes
    DenseVectorVector
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def copy: DenseVector

    Permalink

    Copies the vector instance

    Copies the vector instance

    returns

    Copy of the vector instance

    Definition Classes
    DenseVectorVector
  8. val data: Array[Double]

    Permalink

    Array of doubles to store the vector elements

  9. def dot(other: Vector): Double

    Permalink

    Returns the dot product of the recipient and the argument

    Returns the dot product of the recipient and the argument

    other

    a Vector

    returns

    a scalar double of dot product

    Definition Classes
    DenseVectorVector
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    DenseVector → Equals → AnyRef → Any
  12. def equalsVector(vector: Vector): Boolean

    Permalink
    Definition Classes
    Vector
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    DenseVector → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def magnitude: Double

    Permalink

    Magnitude of a vector

    Magnitude of a vector

    returns

    The length of the vector

    Definition Classes
    DenseVectorVector
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def outer(other: Vector): Matrix

    Permalink

    Returns the outer product (a.k.a.

    Returns the outer product (a.k.a. Kronecker product) of this with other. The result will given in org.apache.flink.ml.math.SparseMatrix representation if other is sparse and as org.apache.flink.ml.math.DenseMatrix otherwise.

    other

    a Vector

    returns

    the org.apache.flink.ml.math.Matrix which equals the outer product of this with other.

    Definition Classes
    DenseVectorVector
  22. def size: Int

    Permalink

    Number of elements in a vector

    Number of elements in a vector

    returns

    the number of the elements in the vector

    Definition Classes
    DenseVectorVector
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toSparseVector: SparseVector

    Permalink

    Convert to a SparseVector

    Convert to a SparseVector

    returns

    Creates a SparseVector from the DenseVector

  25. def toString(): String

    Permalink
    Definition Classes
    DenseVector → AnyRef → Any
  26. def update(index: Int, value: Double): Unit

    Permalink

    Updates the element at the given index with the provided value

    Updates the element at the given index with the provided value

    index

    Index whose value is updated.

    value

    The value used to update the index.

    Definition Classes
    DenseVectorVector
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Vector

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped