Skip to content

Commit 525c370

Browse files
committed
minor
1 parent 004a37f commit 525c370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,8 @@ private[spark] object SerDe extends Serializable {
10091009
val n = bytes.length / 8
10101010
val values = new Array[Double](n)
10111011
val order = ByteOrder.nativeOrder()
1012-
val isTransposed = if (args(3).asInstanceOf[Int] == 1) true else false
10131012
ByteBuffer.wrap(bytes).order(order).asDoubleBuffer().get(values)
1013+
val isTransposed = args(3).asInstanceOf[Int] == 1
10141014
new DenseMatrix(args(0).asInstanceOf[Int], args(1).asInstanceOf[Int], values, isTransposed)
10151015
}
10161016
}

0 commit comments

Comments
 (0)