Re: [eigen] How to squeeze in place a vector matrix

[ Thread Index | Date Index | More Archives ]

On Wed, Aug 25, 2010 at 5:21 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> Use conservativeResize().

IIRC, conservative resize copies. So there is pretty much no reason in
avoiding the aliasing since you will anyways introduce a temporary -
if not more, when "punching out" multiple rows/cols.

I would suggest to write a new function that creates a single target
temporary and assembles the blocks between the rows/cols you want to
kick out. It might be a little bit ugly regarding the indexing but is
probably the most efficient you can do for now.

- Hauke

Mail converted by MHonArc 2.6.19+