[eigen] API addition: resizeLike(const Mat & other);

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I propose adding .resizeLike(const mat &other) which resizes *this to
be the same size as other. I find this is something I do fairly often,
and there is precedent in numpy (empty_like(), zeros_like,
ones_like()).

Any objections? If not, I'll send a patch.

Alternately: we could overload .resize() to take a matrix argument.
That may be misleading; I could be convinced either way.

Keir



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/