Re: [eigen] Test for a non-compiling cast |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Test for a non-compiling cast
- From: "Benoit Jacob" <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 23 Dec 2008 14:08:44 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=cjxyJ7vC+lmt8dfagkNhuNrsdcRsQTNEyE54rT8fNtA=; b=fTAkFev/hXn3wPnlxl0UnyRGKL1qVg+fiJrOvFeX4ctOEm98uYWgRYCanGjBsNrhpw hOSXtKrGswu1SkpGZ0AHm4X53cNj72GfLLW+YeUbCPz+WLkfiiN1OrmQCUT7Nv+XWgfb WI/tr6vCNYJP9gWltRRr8JwLvxK0qRbKu4KRQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HTddJRW1c6HKd2iBae137QKHr2wwgWnyRtMa4PX+s48j591hBaTwgQFf2nKXC5wwIj F6Hv7piOmpmX/eZDU/b0FnoQctZAcjT2+mcuqi0VLGvUFj8cCGHrUeXFf3vzb5InwDfS CGGKZWupJIWHsN1gyG5uwBsulABeGkl28nDOg=
It's not a problem with Eigen, it's just strangeness of the C++ language.
The line 24 needs template keywords like this,
(*b).block(0, 0, 3, 1) = a.template block(0,0, 3, 1).template cast<Complex>();
Cheers,
Benoit
2008/12/23 Ricard Marxer Piñón <email@xxxxxxxxxxxxxxxx>:
> Hi there,
>
> I have problems with revision r900516 (I'm guessing since r900396).
>
> I attach a test file.
>
> --
> ricard
> http://www.ricardmarxer.com
> http://www.caligraft.com
---