[SPARK-4409] Additional (but limited) Linear Algebra Utils (original) (raw)

This ticket is to discuss the addition of a very limited number of local matrix manipulation and generation methods that would be helpful in the further development for algorithms on top of BlockMatrix (SPARK-3974), such as Randomized SVD, and Multi Model Training (SPARK-1486).
The proposed methods for addition are:
For `Matrix`

Factory methods for `DenseMatrix`:

Factory methods for `SparseMatrix`:

Factory methods for `Matrices`: