Re: [eigen] Ref<> Problem |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
I have read bug 884 through, and did not understand every bit I must say :-) But for one thing I am sure: For me it sounds absolutely strange if Ref<> is an object which holds in itself some kind of temporary object (m_object) But considering C++ reference which can hold temporary data it is absolutely legit. So did I understand correctly Ref<MatrixXd> a; is a reference to a MatrixXd and “a” should not in any circumstances bind to some kind of temporary Eigen object (_expression_/block, what ever?) (like double & a;) Ref< const MatrixXd> a; is a reference to a MatrixXd which is CONSt and might bind to a temporary Eigen object (_expression_/block, what ever?) (like const double &) Is that the behaviour which Ref<> already produces or are there some more subtleties? what happens with Ref< const MatrixXd &> a; ???? Ref< MatrixXd &> a; ???? Thanks a lot! Am 04.12.2014 um 21:09 schrieb Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
|
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |