Skip to content

Commit

Permalink
Minor bugfix. An assertion for a matrix assignment B=A was too restri…
Browse files Browse the repository at this point in the history
…ctive in case that B was empty
  • Loading branch information
michael-lehn committed Apr 11, 2014
1 parent 94e0680 commit 92a43aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flens/blas/level1/copy.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ copy(Transpose trans, const MA &A, MB &&B)
} else {
if ((A.numRows()!=B.numCols()) || (A.numCols()!=B.numRows())) {
# ifndef FLENS_DEBUG_CLOSURES
ASSERT(B.numRows()==0 && A.numCols()==0);
ASSERT(B.numRows()==0 || B.numCols()==0);
# else
if (B.numRows()!=0 || B.numCols()!=0) {
FLENS_BLASLOG_RESIZE_MATRIX(B, A.numCols(), A.numRows());
Expand Down

0 comments on commit 92a43aa

Please sign in to comment.