Column-major dense matrix.
A dense vector represented by a value array.
A dense vector represented by a value array.
Trait for a local matrix.
Trait for a local matrix.
Column-major sparse matrix.
Column-major sparse matrix. The entry values are stored in Compressed Sparse Column (CSC) format. For example, the following matrix
1.0 0.0 4.0 0.0 3.0 5.0 2.0 0.0 6.0
is stored as values: [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
,
rowIndices=[0, 2, 1, 0, 1, 2]
, colPointers=[0, 2, 3, 6]
.
A sparse vector represented by an index array and a value array.
A sparse vector represented by an index array and a value array.
Represents a numeric vector, whose index type is Int and value type is Double.
Represents a numeric vector, whose index type is Int and value type is Double.
Users should not implement this interface.
Factory methods for org.apache.spark.ml.linalg.DenseMatrix.
Factory methods for org.apache.spark.ml.linalg.DenseMatrix.
Factory methods for org.apache.spark.ml.linalg.Matrix.
Factory methods for org.apache.spark.ml.linalg.Matrix.
:: DeveloperApi :: SQL data types for vectors and matrices.
:: DeveloperApi :: SQL data types for vectors and matrices.
Factory methods for org.apache.spark.ml.linalg.SparseMatrix.
Factory methods for org.apache.spark.ml.linalg.SparseMatrix.
Factory methods for org.apache.spark.ml.linalg.Vector.
Factory methods for org.apache.spark.ml.linalg.Vector.
We don't use the name Vector
because Scala imports
scala.collection.immutable.Vector
by default.
Column-major dense matrix. The entry values are stored in a single array of doubles with columns listed in sequence. For example, the following matrix
is stored as
[1.0, 3.0, 5.0, 2.0, 4.0, 6.0]
.