From abc8c010807f0706b80bc0ef13303b6485473a57 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sat, 20 Feb 2010 15:53:57 +0100 Subject: Renamed PlainMatrixType to PlainObject (Array != Matrix). Renamed ReturnByValue::ReturnMatrixType ReturnByValue::ReturnType (again, Array != Matrix). --- Eigen/src/Core/ReturnByValue.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Eigen/src/Core/ReturnByValue.h') diff --git a/Eigen/src/Core/ReturnByValue.h b/Eigen/src/Core/ReturnByValue.h index 920269365..d375f0b5c 100644 --- a/Eigen/src/Core/ReturnByValue.h +++ b/Eigen/src/Core/ReturnByValue.h @@ -31,7 +31,7 @@ */ template struct ei_traits > - : public ei_traits::ReturnMatrixType> + : public ei_traits::ReturnType> { enum { // FIXME had to remove the DirectAccessBit for usage like @@ -42,7 +42,7 @@ struct ei_traits > // The fact that I had to do that shows that when doing xpr.block() with a non-direct-access xpr, // even if xpr has the EvalBeforeNestingBit, the block() doesn't use direct access on the evaluated // xpr. - Flags = (ei_traits::ReturnMatrixType>::Flags + Flags = (ei_traits::ReturnType>::Flags | EvalBeforeNestingBit) & ~DirectAccessBit }; }; @@ -51,18 +51,18 @@ struct ei_traits > * So the only way that nesting it in an expression can work, is by evaluating it into a plain matrix. * So ei_nested always gives the plain return matrix type. */ -template -struct ei_nested, n, PlainMatrixType> +template +struct ei_nested, n, PlainObject> { - typedef typename ei_traits::ReturnMatrixType type; + typedef typename ei_traits::ReturnType type; }; template class ReturnByValue - : public ei_traits::ReturnMatrixType::template MakeBase >::Type + : public ei_traits::ReturnType::template MakeBase >::Type { public: - typedef typename ei_traits::ReturnMatrixType ReturnMatrixType; - typedef typename ReturnMatrixType::template MakeBase >::Type Base; + typedef typename ei_traits::ReturnType ReturnType; + typedef typename ReturnType::template MakeBase >::Type Base; EIGEN_DENSE_PUBLIC_INTERFACE(ReturnByValue) template -- cgit v1.2.3