Commits

Chen-Pang He committed 9c198b0

Fix compile error caused by incomplete SparseMatrixBase.

  • Participants
  • Parent commits f3b2d55

Comments (0)

Files changed (2)

File unsupported/Eigen/KroneckerProduct

 #define EIGEN_KRONECKER_PRODUCT_MODULE_H
 
 #include "../../Eigen/Core"
+#include "../../Eigen/SparseCore"
 
 #include "../../Eigen/src/Core/util/DisableStupidWarnings.h"
 

File unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h

       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:
     typename Lhs::Nested m_A;
     typename Rhs::Nested m_B;