fix compilation and segfault issues

This commit is contained in:
Gael Guennebaud
2009-08-06 11:19:36 +02:00
parent b9b17ea5a5
commit fa55cf5ce7
2 changed files with 15 additions and 4 deletions

View File

@@ -217,6 +217,9 @@ struct ei_homogeneous_left_product_impl<Homogeneous<MatrixType,Vertical>,Lhs>
: m_lhs(lhs), m_rhs(rhs)
{}
inline int rows() const { m_lhs.rows(); }
inline int cols() const { m_rhs.cols(); }
template<typename Dest> void evalTo(Dest& dst) const
{
// FIXME investigate how to allow lazy evaluation of this product when possible
@@ -243,6 +246,9 @@ struct ei_homogeneous_right_product_impl<Homogeneous<MatrixType,Horizontal>,Rhs>
: m_lhs(lhs), m_rhs(rhs)
{}
inline int rows() const { m_lhs.rows(); }
inline int cols() const { m_rhs.cols(); }
template<typename Dest> void evalTo(Dest& dst) const
{
// FIXME investigate how to allow lazy evaluation of this product when possible