diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-07-28 17:13:13 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-07-28 17:13:13 +0200 |
commit | 264fe82c655a26f3c3ab5057684dbc51cf533056 (patch) | |
tree | e634e521e0c146abec629454752efb8119897d04 /Eigen/src/Core/SelfAdjointView.h | |
parent | 508f06ac0f9cf2509900138adaf23dee3cdc51c4 (diff) |
add a debug mechanism to compute the number of intermediate evaluations (only for dynamic size)
Diffstat (limited to 'Eigen/src/Core/SelfAdjointView.h')
-rw-r--r-- | Eigen/src/Core/SelfAdjointView.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/SelfAdjointView.h b/Eigen/src/Core/SelfAdjointView.h index 3faebfc5d..5644e2fab 100644 --- a/Eigen/src/Core/SelfAdjointView.h +++ b/Eigen/src/Core/SelfAdjointView.h @@ -306,13 +306,14 @@ struct ei_selfadjoint_product_returntype<Lhs,LhsMode,false,Rhs,RhsMode,false> template<typename Dest> void evalTo(Dest& dst) const { - dst.resize(m_lhs.rows(), m_rhs.cols()); dst.setZero(); evalTo(dst,1); } template<typename Dest> void evalTo(Dest& dst, Scalar alpha) const { + ei_assert(dst.rows()==m_lhs.rows() && dst.cols()==m_rhs.cols()); + const ActualLhsType lhs = LhsBlasTraits::extract(m_lhs); const ActualRhsType rhs = RhsBlasTraits::extract(m_rhs); |