Registered Member
|
Hi,
Is there an Eigen::VectorXd method equivalent to std::vector erase? Thank You. |
Moderator
|
no but you can use vec.data() and vec.data()+vec.size() as begin/end iterators and then call conservativeResize...
|
Registered Member
|
I actually would like to remove the i-th element from an object of type Eigen::VectorXd. With the std::vector, I can just do
but with Eigen, should I just write my own method. For example, just use something like
and then do a conservative resize. Thank You. |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar