Merge pull request #416 from atgeirr/fix-eigen-resize-nnc

Fixed Eigen array dimensions must be respected in resize().
This commit is contained in:
Atgeirr Flø Rasmussen 2015-07-15 13:33:08 +02:00
commit e638176c4a

View File

@ -109,7 +109,7 @@ struct HelperOps
nnc_trans = Eigen::Map<const V>(nnc->trans().data(), numNNC);
} else {
nnc_trans.resize(0);
nnc_cells.resize(0,0);
nnc_cells.resize(0, 2); // Required to have two columns.
}