Skip to content
Snippets Groups Projects
Commit c9b4845b authored by Reza Zadeh's avatar Reza Zadeh
Browse files

prettify

parent dbec69bb
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ class SVDSuite extends FunSuite with BeforeAndAfterAll {
val EPSILON = 1e-4
// Return jblas matrix from sparse matrix RDD
def getDenseMatrix(matrix:SparseMatrix) : DoubleMatrix = {
def getDenseMatrix(matrix: SparseMatrix) : DoubleMatrix = {
val data = matrix.data
val m = matrix.m
val n = matrix.n
......@@ -54,7 +54,7 @@ class SVDSuite extends FunSuite with BeforeAndAfterAll {
ret
}
def assertMatrixEquals(a:DoubleMatrix, b:DoubleMatrix) {
def assertMatrixEquals(a: DoubleMatrix, b: DoubleMatrix) {
assert(a.rows == b.rows && a.columns == b.columns, "dimension mismatch")
val diff = DoubleMatrix.zeros(a.rows, a.columns)
Array.tabulate(a.rows, a.columns){(i, j) =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment