[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Eigen/FFT
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 23 Jun 2009 07:49:00 -0400
- 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=SY0al8vS6sT34OdkMMt5W/Cd1F+8a/hY7DMU30MAx1M=; b=AAxTYBLhPdhc/Q4/IX3Zh3DrOah4eYf0JujNQ1KClerscoWEG1PQ1QkQ+k2iVTGkEU YyavdeoND6TZE2eGL8WbB9ivklJl0LPK2HX5/Ei8HrGfcuBCv8NtCzORNGgPTJGb30pl bpI5eWoIK2C9rr6FodEsB1sxXYHZKYb0gKpIk=
- 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=dZZJrI6G9iD1GytybAZqgmHeRv05tDQQCjgXnmnDuzyTiTXx082dWQciIGBI/+1sTj hrc3h32VfFw2kQTnol4pmlrv4gLHfDzwB3v1DBvZy5Nq1EpHCJ26kjAcJ/xvYhVYT1Hu PNqMKWMjB1b4bFS/Cf5lAyWniBkTGuC8QpGa0=
2009/6/23 Rohit Garg <rpg.314@xxxxxxxxx>:
>> template<typename SrcDerived, typename DstDerived>
>> void foo(const MatrixBase<SrcDerived>& src, MatrixBase<DstDerived> *dst);
> People may need inplace transforms. Please do not rule that out. If
> you have a const reference to src, will it allow that or not?
>
> I mean if you call foo(in, &in). Is that allowed?
Yes: as long as you have a non-const pointer or reference, you can use
it as such, it doesn't matter if there's another constant pointer or
reference pointing to the same address!
Benoit