Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
MechCoder committed Apr 21, 2015
1 parent 004a37f commit 525c370
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ private[spark] object SerDe extends Serializable {
val n = bytes.length / 8
val values = new Array[Double](n)
val order = ByteOrder.nativeOrder()
val isTransposed = if (args(3).asInstanceOf[Int] == 1) true else false
ByteBuffer.wrap(bytes).order(order).asDoubleBuffer().get(values)
val isTransposed = args(3).asInstanceOf[Int] == 1
new DenseMatrix(args(0).asInstanceOf[Int], args(1).asInstanceOf[Int], values, isTransposed)
}
}
Expand Down

0 comments on commit 525c370

Please sign in to comment.