Fix compile error caused by incomplete SparseMatrixBase.

This commit is contained in:
Chen-Pang He 2012-10-16 00:06:49 +08:00
parent 0508a0620b
commit 204a09cb82
2 changed files with 1 additions and 6 deletions

View File

@ -2,6 +2,7 @@
#define EIGEN_KRONECKER_PRODUCT_MODULE_H #define EIGEN_KRONECKER_PRODUCT_MODULE_H
#include "../../Eigen/Core" #include "../../Eigen/Core"
#include "../../Eigen/SparseCore"
#include "../../Eigen/src/Core/util/DisableStupidWarnings.h" #include "../../Eigen/src/Core/util/DisableStupidWarnings.h"

View File

@ -60,12 +60,6 @@ class KroneckerProduct : public ReturnByValue<KroneckerProduct<Lhs,Rhs> >
return m_A.coeff(i / m_A.size()) * m_B.coeff(i % m_A.size()); return m_A.coeff(i / m_A.size()) * m_B.coeff(i % m_A.size());
} }
#ifndef EIGEN_PARSED_BY_DOXYGEN
struct Unusable {};
Unusable& coeffRef(Index) { return *reinterpret_cast<Unusable*>(this); }
Unusable& coeffRef(Index,Index) { return *reinterpret_cast<Unusable*>(this); }
#endif
private: private:
typename Lhs::Nested m_A; typename Lhs::Nested m_A;
typename Rhs::Nested m_B; typename Rhs::Nested m_B;