Skip to content

Commit b05aabb

Browse files
committed
[SPARK-3974] Updated tests to reflect changes
1 parent 19c17e8 commit b05aabb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mllib/src/test/scala/org/apache/spark/mllib/linalg/distributed/BlockMatrixSuite.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)