Registered Member
|
Suppose I have two vectors of doubles, where one of them is supposed to store a subset of entries of the other:
Suppose the subset is determined by a vector of indexes:
Is there a way in Eigen to work with a wrapper for the larger vector such that operations like:
become:
Its like a permutation view of the larger vector. Note that vec_wrapper would hold some reference to the vec data. |
Moderator
|
this is a common feature request, unfortunately nobody took the time to implement it yet. Actually you would even write:
vec(id) = subvec; |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]