Update circulant custom expression example

This commit is contained in:
Gael Guennebaud 2015-02-16 17:21:16 +01:00
parent 0f464d9d87
commit 69fa405096
4 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,6 @@ namespace Eigen {
typedef typename nested_eval<ArgType, XprType::ColsAtCompileTime>::type ArgTypeNested;
typedef typename remove_all<ArgTypeNested>::type ArgTypeNestedCleaned;
typedef typename XprType::CoeffReturnType CoeffReturnType;
typedef typename XprType::Index Index;
enum {
CoeffReadCost = evaluator<ArgTypeNestedCleaned>::CoeffReadCost,

View File

@ -11,7 +11,7 @@ public:
typedef typename Eigen::internal::ref_selector<Circulant>::type Nested;
typedef typename Eigen::internal::traits<Circulant>::Index Index;
typedef Eigen::Index Index;
Index rows() const { return m_arg.rows(); }
Index cols() const { return m_arg.rows(); }

View File

@ -5,7 +5,7 @@ namespace Eigen {
{
typedef Eigen::Dense StorageKind;
typedef Eigen::MatrixXpr XprKind;
typedef typename ArgType::Index Index;
typedef typename ArgType::StorageIndex StorageIndex;
typedef typename ArgType::Scalar Scalar;
enum {
Flags = Eigen::ColMajor,