From a88b3ceca57b616b21e88896a02d5bf224de7242 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 14 Oct 2020 21:33:51 -0400 Subject: [PATCH] Closure cases --- Grid/lattice/Lattice_reality.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Grid/lattice/Lattice_reality.h b/Grid/lattice/Lattice_reality.h index e07dd545..2e80ce4a 100644 --- a/Grid/lattice/Lattice_reality.h +++ b/Grid/lattice/Lattice_reality.h @@ -100,6 +100,16 @@ auto toReal(const Expression &expr) -> decltype(closure(expr)) { return toReal(closure(expr)); } +template::value,void>::type * = nullptr> +auto adj(const Expression &expr) -> decltype(closure(expr)) +{ + return adj(closure(expr)); +} +template::value,void>::type * = nullptr> +auto conjugate(const Expression &expr) -> decltype(closure(expr)) +{ + return conjugate(closure(expr)); +} NAMESPACE_END(Grid);