Class/Object

org.apache.flink.ml.math

DenseMatrix

Related Docs: object DenseMatrix | package math

Permalink

case class DenseMatrix(numRows: Int, numCols: Int, data: Array[Double]) extends Matrix with Serializable with Product

Dense matrix implementation of Matrix. Stores data in column major order in a continuous double array.

numRows

Number of rows

numCols

Number of columns

data

Array of matrix elements in column major order

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

Instance Constructors

  1. new DenseMatrix(numRows: Int, numCols: Int, data: Array[Double])

    Permalink

    numRows

    Number of rows

    numCols

    Number of columns

    data

    Array of matrix elements in column major order

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(row: Int, col: Int): Double

    Permalink

    Element wise access function

    Element wise access function

    row

    row index

    col

    column index

    returns

    matrix entry at (row, col)

    Definition Classes
    DenseMatrixMatrix
  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: DenseMatrix

    Permalink

    Copies the matrix instance

    Copies the matrix instance

    returns

    Copy of itself

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

    Permalink

    Array of matrix elements in column major order

  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    DenseMatrix → Equals → AnyRef → Any
  11. def equalsMatrix(matrix: Matrix): Boolean

    Permalink
    Definition Classes
    Matrix
  12. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    DenseMatrix → AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val numCols: Int

    Permalink

    Number of columns

    Number of columns

    Definition Classes
    DenseMatrixMatrix
  20. val numRows: Int

    Permalink

    Number of rows

    Number of rows

    Definition Classes
    DenseMatrixMatrix
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toSparseMatrix: SparseMatrix

    Permalink

    Converts the DenseMatrix to a SparseMatrix

    Converts the DenseMatrix to a SparseMatrix

    returns

    SparseMatrix build from all the non-null values

  23. def toString(): String

    Permalink
    Definition Classes
    DenseMatrix → AnyRef → Any
  24. def update(row: Int, col: Int, value: Double): Unit

    Permalink

    Element wise update function

    Element wise update function

    row

    row index

    col

    column index

    value

    value to set at (row, col)

    Definition Classes
    DenseMatrixMatrix
  25. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from Matrix

Inherited from AnyRef

Inherited from Any

Ungrouped