Re: [eigen] conservativeResize for constant sized Array accepted but ignored |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] conservativeResize for constant sized Array accepted but ignored
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 20 Apr 2011 09:33:09 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=lcKnSk/F5JP539iqqmkSZUSZtZYazFDRD3f5kklNF28=; b=cobrgb4bNoPuLUQfHWSH5hF/MbXP3yOTjCdFO8W16fBj8gXh07LaPX2fiU9v/CcJ1E Hh0RMWZK43hsPavcfNaDRaUg9SVR+/jsoXxd/C32vZwB+dUWjGMpQr27bRfXkBKiAoBK /6D/+dGF80euNLkDB4YUik99XoQUG9Dems08M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=iVQPd7YHPQJ7eTunaGS2bt0r0dGP5u0X7pwoKJDhWC+TusXCnelkswNfvTLBBtVJo4 UN/AemOTo6j45/rloou8cVKV/sfDiVqFFpbWFe3AtwC6N6Q3D1IycfI1502RnxYQArk/ 8sK3NAbkGc1BYBQcYDp1e5x1V18Qwo1afRFik=
Hi,
you should only get an error (assertion) if the sizes do not match.
For instance it is perfectly OK to call .resize(3,3) or
conservativeResize(3,3) on a Matrix3f.
gael
On Wed, Apr 13, 2011 at 9:41 PM, Helmut Jarausch
<jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> by accident I have applied the conservativeResize
> method to an Array of non-dynamic size.
> This is accepted during compilation without
> any effect at run time (as it should be).
>
> Is it possible to emit an error message in
> this case?
>
> Thanks,
> Helmut.
>
>
>
>