Remove unnecessary code. lazyAssign seems to fix all (noalias, initialization, etc.)

This commit is contained in:
Chen-Pang He
2012-09-24 23:36:19 +08:00
parent 334532b7f5
commit d387dfa9dc
2 changed files with 0 additions and 19 deletions

View File

@@ -250,26 +250,11 @@ class MatrixPowerProductBase : public MatrixBase<Derived>
typedef MatrixBase<Derived> Base;
EIGEN_DENSE_PUBLIC_INTERFACE(MatrixPowerProductBase)
typedef typename Base::PlainObject PlainObject;
inline Index rows() const { return derived().rows(); }
inline Index cols() const { return derived().cols(); }
template<typename ResultType>
inline void evalTo(ResultType& res) const { derived().evalTo(res); }
const PlainObject& eval() const
{
m_result.resize(rows(), cols());
derived().evalTo(m_result);
return m_result;
}
operator const PlainObject&() const
{ return eval(); }
protected:
mutable PlainObject m_result;
};
template<typename Derived>