Skip to content

Commit

Permalink
make compiler happy
Browse files Browse the repository at this point in the history
  • Loading branch information
haifengl committed Mar 27, 2017
1 parent d0b406e commit 5102b66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scala/src/main/scala/smile/math/Expression.scala
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ case class MatrixMultiplicationExpression(A: MatrixExpression, B: MatrixExpressi
override lazy val toMatrix: DenseMatrix = {
(A, B) match {
case (MatrixTranspose(A), MatrixTranspose(B)) => B.toMatrix.abmm(A.toMatrix).transpose()
case (MatrixTranspose(A), B) => A.toMatrix.atbmm(B.toMatrix)
case (A, MatrixTranspose(B)) => A.toMatrix.abtmm(B.toMatrix)
case (A, B) => A.toMatrix.abmm(B.toMatrix)
case (MatrixTranspose(A), _) => A.toMatrix.atbmm(B.toMatrix)
case (_, MatrixTranspose(B)) => A.toMatrix.abtmm(B.toMatrix)
case (_, _) => A.toMatrix.abmm(B.toMatrix)
}
}

Expand Down

0 comments on commit 5102b66

Please sign in to comment.