Skip to content

Commit

Permalink
Merge pull request #15 from keinstein/fix_column_sequence_row_check
Browse files Browse the repository at this point in the history
Fix row check for successive column entries.
  • Loading branch information
marcel-goldschen-ohm authored Nov 12, 2018
2 parents bd31fe6 + 6f94901 commit 2a0c666
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 2a0c666

Please sign in to comment.