mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Add evaluator for Ref
This commit is contained in:
parent
a08cba6b5f
commit
1b5de5a37b
@ -647,6 +647,19 @@ struct evaluator<Map<PlainObjectType, MapOptions, StrideType> >
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// -------------------- Ref --------------------
|
||||||
|
|
||||||
|
template<typename PlainObjectType, int RefOptions, typename StrideType>
|
||||||
|
struct evaluator<Ref<PlainObjectType, RefOptions, StrideType> >
|
||||||
|
: public evaluator<MapBase<Ref<PlainObjectType, RefOptions, StrideType> > >
|
||||||
|
{
|
||||||
|
typedef Ref<PlainObjectType, RefOptions, StrideType> XprType;
|
||||||
|
|
||||||
|
evaluator(const XprType& map)
|
||||||
|
: evaluator<MapBase<XprType> >(map)
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
|
||||||
// -------------------- Block --------------------
|
// -------------------- Block --------------------
|
||||||
|
|
||||||
template<typename ArgType, int BlockRows, int BlockCols, bool InnerPanel,
|
template<typename ArgType, int BlockRows, int BlockCols, bool InnerPanel,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user