Skip to content

Commit

Permalink
Fix row check for successive column entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schlemmer committed Nov 12, 2018
1 parent bd31fe6 commit 6f94901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EigenLab.h
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ namespace EigenLab
} else {
submatrix = eval(cols[j]);
}
if(j > 0 && size_t(submatrix.matrix().cols()) != nrows)
if(j > 0 && size_t(submatrix.matrix().rows()) != nrows)
throw std::runtime_error("Invalid matrix definition '[" + str + "]'. Successive column entries '" + cols[int(j) - 1] + "' and '" + cols[j] + "' do not have the same number of rows.");
nrows = submatrix.matrix().rows();
ncols += submatrix.matrix().cols();
Expand Down

0 comments on commit 6f94901

Please sign in to comment.