add accessors to coeff based product

This commit is contained in:
Gael Guennebaud 2010-02-09 11:13:22 +01:00
parent 5686eca7b1
commit d104d2cd29
2 changed files with 4 additions and 1 deletions

View File

@ -182,6 +182,9 @@ class CoeffBasedProduct
return m_result;
}
const _LhsNested& lhs() const { return m_lhs; }
const _RhsNested& rhs() const { return m_rhs; }
protected:
const LhsNested m_lhs;
const RhsNested m_rhs;

View File

@ -25,7 +25,7 @@
static int nb_temporaries;
#define EIGEN_DEBUG_MATRIX_CTOR { \
if(SizeAtCompileTime==Dynamic) \
if(SizeAtCompileTime==Dynamic && this->data()!=0) \
nb_temporaries++; \
}