Class/Object

org.apache.flink.ml.math

SparseMatrix

Related Docs: object SparseMatrix | package math

Permalink

class SparseMatrix extends Matrix with Serializable

Sparse matrix using the compressed sparse column (CSC) representation.

More details concerning the compressed sparse column (CSC) representation can be found [http://en.wikipedia.org/wiki/Sparse_matrix#Compressed_sparse_column_.28CSC_or_CCS.29].

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

Instance Constructors

  1. new SparseMatrix(numRows: Int, numCols: Int, rowIndices: Array[Int], colPtrs: Array[Int], data: Array[Double])

    Permalink

    numRows

    Number of rows

    numCols

    Number of columns

    rowIndices

    Array containing the row indices of non-zero entries

    colPtrs

    Array containing the starting offsets in data for each column

    data

    Array containing the non-zero entries 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
    SparseMatrixMatrix
  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. val colPtrs: Array[Int]

    Permalink

    Array containing the starting offsets in data for each column

  8. def copy: SparseMatrix

    Permalink

    Copies the matrix instance

    Copies the matrix instance

    returns

    Copy of itself

    Definition Classes
    SparseMatrixMatrix
  9. val data: Array[Double]

    Permalink

    Array containing the non-zero entries in column-major order

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

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

    Permalink
    Definition Classes
    SparseMatrix → AnyRef → Any
  12. def equalsMatrix(matrix: Matrix): Boolean

    Permalink
    Definition Classes
    Matrix
  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
    SparseMatrix → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val numCols: Int

    Permalink

    Number of columns

    Number of columns

    Definition Classes
    SparseMatrixMatrix
  21. val numRows: Int

    Permalink

    Number of rows

    Number of rows

    Definition Classes
    SparseMatrixMatrix
  22. val rowIndices: Array[Int]

    Permalink

    Array containing the row indices of non-zero entries

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

    Permalink
    Definition Classes
    AnyRef
  24. def toDenseMatrix: DenseMatrix

    Permalink
  25. def toString(): String

    Permalink
    Definition Classes
    SparseMatrix → AnyRef → Any
  26. 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
    SparseMatrixMatrix
  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 Serializable

Inherited from Serializable

Inherited from Matrix

Inherited from AnyRef

Inherited from Any

Ungrouped