Re: [eigen] is MAP oneway ? (urgent) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] is MAP oneway ? (urgent)
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 24 Jun 2009 14:46:04 +0200
- 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 :content-transfer-encoding; bh=vBMKnE6y79Ijz+luXIkLUgpQ4+7l+FIfGDv1Y8za/r0=; b=qVM7a2WcLei40w5QR4bNeDFPmrMq32og7AZw43vIOmTKk8QV89ZO5tGKIX3/sa56Xq tyxrBreyDtabu3J+xxew0kw+8l6Pevhf3u7+FCicvxVhO7yTop/UL0oEv2Wv4iNBN9Lk R11cYcx2xb1qKEFElUqSRfrYiEWzHYFZ/8qvM=
- 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:content-transfer-encoding; b=VeE61BSPRKxetOpFkWeWpApLGz/t/C6On298Up4IS8ais9/9ysyhpq/ZUBbKORscg2 /BNMt6WxP010CLGnr8hp48D0ERuwUF5KH8RwKYCS1MsyfI+ACMafWDWq8NsD0BsIKSsk srwAjPW81hieSNmbL8+HJyn+HpPoRsp2hIJLQ=
2009/6/24 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Of course: process takes a VectorXd reference, but D is not a VectorXd.
>
> The biggest common denominator between VectorXd and Map<VectorXd> is
> MatrixBase, so you want process to take a MatrixBase reference:
>
> template<typename Derived>
> void process(const MatrixBase<Derived>& DATA);
oops, remove the const here.
Benoit