[eigen] Re: Strong inlining is sometimes ignored...

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Ok, next thing. For

template<typename Derived>
template<typename CustomNullaryOp>
EIGEN_STRONG_INLINE const CwiseNullaryOp<CustomNullaryOp, Derived>
MatrixBase<Derived>::NullaryExpr(int size, const CustomNullaryOp& func);

the function is not inlined due to the

ei_assert(IsVectorAtCompileTime);

It might throw an exception and thus the function is according to http://msdn.microsoft.com/en-us/library/a98sb923%28VS.80%29.aspx not inlined. I think it is the third rule.

Is that assert really required? We already have a compile time assert checking for the matrix being a vector.

- Hauke


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/