library/algebra/lazy/Reverse.hpp
Depends on
Required by
Verified with
Code
#pragma once
#include "library/algebra/Reverse.hpp"
template <typename Lazy> struct LazyReverse : Lazy {
using MX = AlgebraReverse<typename Lazy::MX>;
};
#line 2 "library/algebra/Reverse.hpp"
template<typename Algebra>
struct AlgebraReverse:Algebra{
using X=typename Algebra::value_type;
static constexpr X op(const X& x, const X& y){ return Algebra::op(y,x); }
static constexpr void Rchop(X&x,const X&y){ Algebra::Lchop(y,x); }
static constexpr void Lchop(const X&x,X&y){ Algebra::Rchop(y,x); }
};
#line 3 "library/algebra/lazy/Reverse.hpp"
template <typename Lazy> struct LazyReverse : Lazy {
using MX = AlgebraReverse<typename Lazy::MX>;
};
Back to top page