Re: [eigen] How to squeeze in place a vector matrix |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] How to squeeze in place a vector matrix
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Wed, 25 Aug 2010 17:29:37 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=dtSJ/AtfBX4TyTUmuvWIOjmBGkhBKIfDWZw5t0B1ocA=; b=lEqIi2hNwqfUqcuAjaCQdMYxiQmD4Y/wbFsEjgilLgvj2qWXqgVGc9CS11lwU81CGi iM3P/Y19HM84JH+ntxBP5p0TcnYMgir82wmydBd6HBZffzDT9Q5tZu08wg1dD/jO4eC9 4aC4H0JEyURy56UCaAAH2zFwk7jnFm6nL2XAk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gg0VFY0g+NhSwChTmTcqu/kqgDzHNDan37dRIyB/myuhBXTZ79lc7WDTFo7WCPYUXL 4bRB7bwqNAVax1p9O4RaLDvlAPDjBZ26nl1qQHwI3z2XhQcB8nCej4zJayoMTw/J8xwt phX9K4INDJDS1FB37Amb5xjpvjfXEguotB28E=
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