Skip to the content.

:heavy_check_mark: library/algebra/Reverse.hpp

Depends on

Required by

Verified with

Code

#pragma once
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 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); }
};
Back to top page