Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Forgot about the scalar case.

  • Loading branch information...
commit 906282b37874dd678f723a60146beca766611f88 1 parent 3ef6b67
@dsimcha dsimcha authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 scid/ops/expression.d
View
4 scid/ops/expression.d
@@ -247,7 +247,9 @@ template Operand( Closure closure_ ) {
auto opBinary( string op, NewRhs )( auto ref NewRhs newRhs ) if( op == "*" ) {
// If we're multiplying a column vector by a row vector or a matrix,
// rewrite the expression as matrix-matrix multiplication.
- static if( this.closure == Closure.ColumnVector ) {
+ static if( 0 && this.closure == Closure.ColumnVector &&
+ closureOf!NewRhs != Closure.Scalar
+ ) {
static assert( closureOf!NewRhs != Closure.ColumnVector,
"Invalid multiplication between ColumnVector and ColumnVector." );
Please sign in to comment.
Something went wrong with that request. Please try again.