This forum has been archived. All content is frozen. Please use KDE Discuss instead.

where is EIGEN_REF_TO_TEMPORARY

Tags: None
(comma "," separated)
wingsit
Registered Member
Posts
28
Karma
0
OS

where is EIGEN_REF_TO_TEMPORARY

Fri Dec 31, 2010 8:56 pm
on the page http://eigen.tuxfamily.org/dox-devel/To ... Types.html

it talks about how to pass Eigen type into functions. However I cannot find EIGEN_REF_TO_TEMPORARY after short grep. Anyone know where it is?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: where is EIGEN_REF_TO_TEMPORARY

Sat Jan 01, 2011 10:54 am
ok, looks like the doc has not been automatically regenerated yet. This macro has been removed. Use "const &" instead.
wingsit
Registered Member
Posts
28
Karma
0
OS

Re: where is EIGEN_REF_TO_TEMPORARY

Mon Jan 03, 2011 6:49 pm
ggael wrote:ok, looks like the doc has not been automatically regenerated yet. This macro has been removed. Use "const &" instead.


Thanks for the update. Though I dont understand the difference between

const MatrixBase<Derived>& x

and

MatrixBase<OtherDerived> const &

I always thought that they are equivalent and mean it is passing a reference to a constant object.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft