diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-03-21 04:36:07 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-03-21 04:36:07 +0000 |
commit | 5697ebe98e16f1438d6feba09cb075b6a0f2a653 (patch) | |
tree | caf213e0ce7a992096d10246878fd56c7eda9793 /externals/grill/vasp/source/opfuns.h | |
parent | 9056179fcd52793c16112471d1d7fed45722194c (diff) |
""
svn path=/trunk/; revision=488
Diffstat (limited to 'externals/grill/vasp/source/opfuns.h')
-rw-r--r-- | externals/grill/vasp/source/opfuns.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/externals/grill/vasp/source/opfuns.h b/externals/grill/vasp/source/opfuns.h index 3a14eb95..51b1fd06 100644 --- a/externals/grill/vasp/source/opfuns.h +++ b/externals/grill/vasp/source/opfuns.h @@ -121,7 +121,7 @@ namespace VecOp { template<class T> class f_sqr { public: static I run_opt() { return 3; } - static V run(T &v,T a) { v = a*a; post("sq"); } + static V run(T &v,T a) { v = a*a; } static I cun_opt() { return 1; } static V cun(T &rv,T &iv,T ra,T ia) { rv = ra*ra-ia*ia; iv = ra*ia*2; } }; @@ -133,6 +133,15 @@ namespace VecOp { }; + template<class T> class f_sumq { + public: + static I rop_opt() { return 2; } + static V rop(T &,T ra,OpParam &p) + { + p.norm.minmax += ra; + } + }; + // transcendent template<class T> class f_powi { |