diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-03 21:09:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-03 21:10:13 +0100 |
commit | f0238cfb6997c4acfc2bd200de7295f3fa36968f (patch) | |
tree | b215183760e4f615b9c1dabc1f116383b72a1b55 /eigen/doc/examples/make_circulant.cpp.evaluator | |
parent | 543edd372a5193d04b3de9f23c176ab439e51b31 (diff) |
don't index Eigen
Diffstat (limited to 'eigen/doc/examples/make_circulant.cpp.evaluator')
-rw-r--r-- | eigen/doc/examples/make_circulant.cpp.evaluator | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/eigen/doc/examples/make_circulant.cpp.evaluator b/eigen/doc/examples/make_circulant.cpp.evaluator deleted file mode 100644 index 2ba79e7..0000000 --- a/eigen/doc/examples/make_circulant.cpp.evaluator +++ /dev/null @@ -1,32 +0,0 @@ -namespace Eigen { - namespace internal { - template<typename ArgType> - struct evaluator<Circulant<ArgType> > - : evaluator_base<Circulant<ArgType> > - { - typedef Circulant<ArgType> XprType; - typedef typename nested_eval<ArgType, XprType::ColsAtCompileTime>::type ArgTypeNested; - typedef typename remove_all<ArgTypeNested>::type ArgTypeNestedCleaned; - typedef typename XprType::CoeffReturnType CoeffReturnType; - - enum { - CoeffReadCost = evaluator<ArgTypeNestedCleaned>::CoeffReadCost, - Flags = Eigen::ColMajor - }; - - evaluator(const XprType& xpr) - : m_argImpl(xpr.m_arg), m_rows(xpr.rows()) - { } - - CoeffReturnType coeff(Index row, Index col) const - { - Index index = row - col; - if (index < 0) index += m_rows; - return m_argImpl.coeff(index); - } - - evaluator<ArgTypeNestedCleaned> m_argImpl; - const Index m_rows; - }; - } -} |