aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/ops_trnsc.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/vasp/source/ops_trnsc.h')
-rw-r--r--externals/grill/vasp/source/ops_trnsc.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/externals/grill/vasp/source/ops_trnsc.h b/externals/grill/vasp/source/ops_trnsc.h
index 73617d9a..408aeb9b 100644
--- a/externals/grill/vasp/source/ops_trnsc.h
+++ b/externals/grill/vasp/source/ops_trnsc.h
@@ -15,16 +15,14 @@ WARRANTIES, see the file, "license.txt," in this distribution.
// Transcendent math functions
-namespace VecOp {
- inline BL d_pow(OpParam &p) { return d__rbin<S,f_pow<S> >(p); }
- inline BL d_rpow(OpParam &p) { return d__cbin<S,f_pow<S> >(p); }
+DEFOP(S,d_pow,pow,rbin)
+DEFOP(S,d_rpow,pow,cbin)
- inline BL d_sqrt(OpParam &p) { return d__run<S,f_sqrt<S> >(p); }
- inline BL d_ssqrt(OpParam &p) { return d__run<S,f_ssqrt<S> >(p); }
+DEFOP(S,d_sqrt,sqrt,run)
+DEFOP(S,d_ssqrt,ssqrt,run)
- inline BL d_exp(OpParam &p) { return d__run<S,f_exp<S> >(p); }
- inline BL d_log(OpParam &p) { return d__run<S,f_log<S> >(p); }
-}
+DEFOP(S,d_exp,exp,run)
+DEFOP(S,d_log,log,run)
namespace VaspOp {
inline Vasp *m_pow(OpParam &p,CVasp &src,const Argument &arg,CVasp *dst = NULL) { return m_rbin(p,src,arg,dst,VecOp::d_pow); } // power