mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 17:59:00 +08:00
Fix compile error caused by incomplete SparseMatrixBase.
This commit is contained in:
parent
0508a0620b
commit
204a09cb82
@ -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"
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user