class CoordinateMatrix extends DistributedMatrix
Represents a matrix in coordinate format.
- Annotations
- @Since( "1.0.0" )
- Source
- CoordinateMatrix.scala
- Alphabetic
- By Inheritance
- CoordinateMatrix
- DistributedMatrix
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CoordinateMatrix(entries: RDD[MatrixEntry])
Alternative constructor leaving matrix dimensions to be determined automatically.
Alternative constructor leaving matrix dimensions to be determined automatically.
- Annotations
- @Since( "1.0.0" )
-
new
CoordinateMatrix(entries: RDD[MatrixEntry], nRows: Long, nCols: Long)
- 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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
val
entries: RDD[MatrixEntry]
- Annotations
- @Since( "1.0.0" )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
numCols(): Long
Gets or computes the number of columns.
Gets or computes the number of columns.
- Definition Classes
- CoordinateMatrix → DistributedMatrix
- Annotations
- @Since( "1.0.0" )
-
def
numRows(): Long
Gets or computes the number of rows.
Gets or computes the number of rows.
- Definition Classes
- CoordinateMatrix → DistributedMatrix
- Annotations
- @Since( "1.0.0" )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBlockMatrix(rowsPerBlock: Int, colsPerBlock: Int): BlockMatrix
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
- Annotations
- @Since( "1.3.0" )
-
def
toBlockMatrix(): BlockMatrix
Converts to BlockMatrix.
Converts to BlockMatrix. Creates blocks of
SparseMatrix
with size 1024 x 1024.- Annotations
- @Since( "1.3.0" )
-
def
toIndexedRowMatrix(): IndexedRowMatrix
Converts to IndexedRowMatrix.
Converts to IndexedRowMatrix. The number of columns must be within the integer range.
- Annotations
- @Since( "1.0.0" )
-
def
toRowMatrix(): RowMatrix
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" )
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transpose(): CoordinateMatrix
Transposes this CoordinateMatrix.
Transposes this CoordinateMatrix.
- Annotations
- @Since( "1.3.0" )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated