From 109473cacf85c7e2a2831d56531399ab4621654e Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Thu, 3 Jun 2010 17:55:42 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@118 ed2142bd-67ad-457f-ba7c-d818d4011675 --- methods/powell/bas_util.hpp | 65 --------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 methods/powell/bas_util.hpp (limited to 'methods/powell/bas_util.hpp') diff --git a/methods/powell/bas_util.hpp b/methods/powell/bas_util.hpp deleted file mode 100644 index ccdce9e..0000000 --- a/methods/powell/bas_util.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef BAS_UTIL -#define BAS_UTIL -#define OPT_HEADER -#include -#include -namespace opt_utilities -{ - template - T tabs(T x) - { - return T(x) - T sqr(T x) - { - return x*x; - } - - - template - void shft3(T&a,T& b,T& c,T d) - { - opt_eq(a,b); - opt_eq(b,c); - opt_eq(c,d); - } - - template - void shft(T& a,T& b,T& c,T d) - { - opt_eq(a,b); - opt_eq(b,c); - opt_eq(c,d); - } - // template - // void swap(T& ax,T& bx) - //{ - // swap(ax,bx); - // T temp; - //opt_eq(temp,ax); - //opt_eq(ax,bx); - //opt_eq(bx,temp); - //} - - template - T sign(const T& a,const T& b) - { - return b>=0?T(a>=0?T(a):T(-a)):T(a>=0?T(-a):T(a)); - } - - template - T max(T a,T b) - { - return b>a?T(b):T(a); - } - - template - void mov3(T& a,T& b,T& c, T& d,T& e,T& f) - { - opt_eq(a,d);opt_eq(b,e);opt_eq(c,f); - } -} - -#endif -- cgit v1.2.2