Class

org.apache.spark.mllib.linalg.distributed

CoordinateMatrix

Related Doc: package distributed

Permalink

class CoordinateMatrix extends DistributedMatrix

Represents a matrix in coordinate format.

Annotations
@Since( "1.0.0" )
Source
CoordinateMatrix.scala
Linear Supertypes
DistributedMatrix, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CoordinateMatrix
  2. DistributedMatrix
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CoordinateMatrix(entries: RDD[MatrixEntry])

    Permalink

    Alternative constructor leaving matrix dimensions to be determined automatically.

    Alternative constructor leaving matrix dimensions to be determined automatically.

    Annotations
    @Since( "1.0.0" )
  2. new CoordinateMatrix(entries: RDD[MatrixEntry], nRows: Long, nCols: Long)

    Permalink

    entries

    matrix entries

    nRows

    number of rows. A non-positive value means unknown, and then the number of rows will be determined by the max row index plus one.

    nCols

    number of columns. A non-positive value means unknown, and then the number of columns will be determined by the max column index plus one.

    Annotations
    @Since( "1.0.0" )

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val entries: RDD[MatrixEntry]

    Permalink

    matrix entries

    matrix entries

    Annotations
    @Since( "1.0.0" )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def numCols(): Long

    Permalink

    Gets or computes the number of columns.

    Gets or computes the number of columns.

    Definition Classes
    CoordinateMatrixDistributedMatrix
    Annotations
    @Since( "1.0.0" )
  17. def numRows(): Long

    Permalink

    Gets or computes the number of rows.

    Gets or computes the number of rows.

    Definition Classes
    CoordinateMatrixDistributedMatrix
    Annotations
    @Since( "1.0.0" )
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toBlockMatrix(rowsPerBlock: Int, colsPerBlock: Int): BlockMatrix

    Permalink

    Converts to BlockMatrix.

    Converts to BlockMatrix. Creates blocks of SparseMatrix.

    rowsPerBlock

    The number of rows of each block. The blocks at the bottom edge may have a smaller value. Must be an integer value greater than 0.

    colsPerBlock

    The number of columns of each block. The blocks at the right edge may have a smaller value. Must be an integer value greater than 0.

    returns

    a BlockMatrix

    Annotations
    @Since( "1.3.0" )
  20. def toBlockMatrix(): BlockMatrix

    Permalink

    Converts to BlockMatrix.

    Converts to BlockMatrix. Creates blocks of SparseMatrix with size 1024 x 1024.

    Annotations
    @Since( "1.3.0" )
  21. def toIndexedRowMatrix(): IndexedRowMatrix

    Permalink

    Converts to IndexedRowMatrix.

    Converts to IndexedRowMatrix. The number of columns must be within the integer range.

    Annotations
    @Since( "1.0.0" )
  22. def toRowMatrix(): RowMatrix

    Permalink

    Converts to RowMatrix, dropping row indices after grouping by row index.

    Converts to RowMatrix, dropping row indices after grouping by row index. The number of columns must be within the integer range.

    Annotations
    @Since( "1.0.0" )
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def transpose(): CoordinateMatrix

    Permalink

    Transposes this CoordinateMatrix.

    Transposes this CoordinateMatrix.

    Annotations
    @Since( "1.3.0" )
  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 DistributedMatrix

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped