@@ -38,13 +38,13 @@ class BlockMatrixSuite extends FunSuite with LocalSparkContext {
3838
3939 override def beforeAll () {
4040 super .beforeAll()
41- val entries : Seq [BlockPartition ] = Seq (
42- new BlockPartition (0 , 0 , new DenseMatrix (2 , 2 , Array (1.0 , 0.0 , 0.0 , 2.0 ))),
43- new BlockPartition (0 , 1 , new DenseMatrix (2 , 2 , Array (0.0 , 1.0 , 0.0 , 0.0 ))),
44- new BlockPartition (1 , 0 , new DenseMatrix (2 , 2 , Array (3.0 , 0.0 , 1.5 , 0.0 ))),
45- new BlockPartition (1 , 1 , new DenseMatrix (2 , 2 , Array (1.0 , 4.0 , 0.0 , 1.0 ))),
46- new BlockPartition (2 , 0 , new DenseMatrix (1 , 2 , Array (1.0 , 0.0 ))),
47- new BlockPartition (2 , 1 , new DenseMatrix (1 , 2 , Array (1.0 , 5.0 ))))
41+ val entries : Seq [SubMatrix ] = Seq (
42+ new SubMatrix (0 , 0 , new DenseMatrix (2 , 2 , Array (1.0 , 0.0 , 0.0 , 2.0 ))),
43+ new SubMatrix (0 , 1 , new DenseMatrix (2 , 2 , Array (0.0 , 1.0 , 0.0 , 0.0 ))),
44+ new SubMatrix (1 , 0 , new DenseMatrix (2 , 2 , Array (3.0 , 0.0 , 1.5 , 0.0 ))),
45+ new SubMatrix (1 , 1 , new DenseMatrix (2 , 2 , Array (1.0 , 4.0 , 0.0 , 1.0 ))),
46+ new SubMatrix (2 , 0 , new DenseMatrix (1 , 2 , Array (1.0 , 0.0 ))),
47+ new SubMatrix (2 , 1 , new DenseMatrix (1 , 2 , Array (1.0 , 5.0 ))))
4848
4949 val colPart = new ColumnBasedPartitioner (numColBlocks, rowPerPart, colPerPart)
5050 val rowPart = new RowBasedPartitioner (numRowBlocks, rowPerPart, colPerPart)
0 commit comments