Re: [eigen] Eigen/FFT

[ Thread Index | Date Index | More Archives ]

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!


Mail converted by MHonArc 2.6.19+