diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-12-02 14:05:34 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-12-02 14:05:34 +0100 |
commit | 27ca9437a1e191f20724492275bf0b1415eee2d6 (patch) | |
tree | 736ed8769f9c4ba0e14fd8ee6b34013a00fcc958 /Eigen/src/Core/util/Constants.h | |
parent | d0261bd26c3900a5e52da3574fc2aeab3392c30b (diff) |
Fix usage of Dense versus DenseShape
Diffstat (limited to 'Eigen/src/Core/util/Constants.h')
-rw-r--r-- | Eigen/src/Core/util/Constants.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h index 3178ff06e..14449eb6c 100644 --- a/Eigen/src/Core/util/Constants.h +++ b/Eigen/src/Core/util/Constants.h @@ -440,6 +440,18 @@ struct MatrixXpr {}; /** The type used to identify an array expression */ struct ArrayXpr {}; + +#ifdef EIGEN_ENABLE_EVALUATORS +// An evaluator must define its shape. By default, it can be one of the following: +struct DenseShape { static std::string debugName() { return "DenseShape"; } }; +struct DiagonalShape { static std::string debugName() { return "DiagonalShape"; } }; +struct BandShape { static std::string debugName() { return "BandShape"; } }; +struct TriangularShape { static std::string debugName() { return "TriangularShape"; } }; +struct SelfAdjointShape { static std::string debugName() { return "SelfAdjointShape"; } }; +struct SparseShape { static std::string debugName() { return "SparseShape"; } }; +#endif + + } // end namespace Eigen #endif // EIGEN_CONSTANTS_H |