Registered Member
|
Hi,
I'm creating a helper function to append a dense matrix at the bottom of another one. This is the code:
This seems to work for Matrixes of more than one column and rows. But when I use it with data and append being ArrayXi I get a non very clear compiler error, which I assume it's down to conservativeResize having a single parameter for column Vectors. How can I change this code so that it can work for both Matrixes (of more than one column and rows) and column Vectors? |
Moderator
|
Please post the error you get. As a side note instead of block, you can use data.bottomRows(append.rows()) = append;
|
Registered Member
|
The compile error is:
Compiler is Visual Studio 2008 Express. |
Moderator
|
alright, this is fixed in the devel branch and backported in 3.2:
https://bitbucket.org/eigen/eigen/commits/eb7573ee22e4/ Changeset: eb7573ee22e4 User: ggael Date: 2013-10-16 12:07:33 Summary: Allow .conservativeResize(rows,cols) on vectors |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]