Navigation Menu

Skip to content

Commit

Permalink
Forgot about the scalar case.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimcha committed Dec 7, 2011
1 parent 3ef6b67 commit 906282b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scid/ops/expression.d
Expand Up @@ -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." );

Expand Down

0 comments on commit 906282b

Please sign in to comment.