[feature request] Add Reshape Operation
Submitted by brian
Assigned to Nobody
Link to original bugzilla bug (#437)
Description
I often want to have a reshaped view of an existing array or matrix. For example, view a 3xK matrix as a 3K x 1 vector to perform a linear operation on the vertices of a model. This can be achieved with the Eigen::Map object, but is rather verbose.
It would be great, if eigen had a .reshape(h,w) function which would return an Eigen::Map with a new view on the data.
Could this be implemented? Do other people also need this funcitonality? I believe, that it is quite common, when you are coming from a matlab mindset.
kind regards,
Brian