Re: [eigen] Appending items in VectorXfs |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Appending items in VectorXfs
- From: Rohit Garg <rpg.314@xxxxxxxxx>
- Date: Thu, 10 Sep 2009 21:50:15 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=EFXBKq+gKqPNjo5CMjtm1BgG6KmXPDD6QZDqPiLH8Qw=; b=fumkstaAIgrk3Ri/OHYRYoNYtblnWX5PBGKY7z6uMrnGUjR3CZBWaSIlvkqyRJDJEQ xBR2Ly4r7ndQqZQdSAjswUq9IfiwdKx+bVbjeteP3uJzYI7l1zEs69rzvSZarILimoQO iYQAV3QWtoHGqLMxU1uy+mB10T6ul9xZJTDRQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CNE3yG+jn18nS0oJgLG7Ci7CUP7C8FJxY1WkFPu6Mx1eENVzObU6c0A/WczmRaAnFB pBCG3iPJDmtnBPf692qb1GmJVZHB6TOkolsKp+eUM6oxBZrQrEF2hEcgk2Slt9UpvUxx 1Z7djouNnhyssvkXrM9lirJM3hRKno+dF+Sk0=
> It can be done by allocating a tmp of size x.size()+1 in each loops and
> copying there, adding the element and copying back to x, but is nowhere near
> optimal so I wonder if it can be done with an Eigen function or in a
> better/faster way?
I doubt that. :(
--
Rohit Garg
http://rpg-314.blogspot.com/
Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay