aboutsummaryrefslogtreecommitdiffstats
path: root/methods/powell
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-23 13:08:26 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-23 13:08:26 +0000
commitf11adda11d1275bcff45b20c15194d7a76bb6b59 (patch)
treeb57521b8eeef3fe85130ebb32a964a3dbac7aebd /methods/powell
parent1a63d3a669ebcff212e52ddb1e4efae473550f9f (diff)
downloadopt-utilities-f11adda11d1275bcff45b20c15194d7a76bb6b59.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@54 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'methods/powell')
-rw-r--r--methods/powell/bas_util.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/methods/powell/bas_util.hpp b/methods/powell/bas_util.hpp
index 743dc3c..6a53f0a 100644
--- a/methods/powell/bas_util.hpp
+++ b/methods/powell/bas_util.hpp
@@ -1,6 +1,7 @@
#ifndef BAS_UTIL
#define BAS_UTIL
#include <core/opt_traits.hpp>
+#include <algorithm>
namespace opt_utilities
{
template <typename T>
@@ -31,15 +32,15 @@ namespace opt_utilities
opt_eq(b,c);
opt_eq(c,d);
}
- template <typename T>
- void swap(T& ax,T& bx)
- {
+ // template <typename T>
+ // void swap(T& ax,T& bx)
+ //{
// swap(ax,bx);
- T temp;
- opt_eq(temp,ax);
- opt_eq(ax,bx);
- opt_eq(bx=temp);
- }
+ // T temp;
+ //opt_eq(temp,ax);
+ //opt_eq(ax,bx);
+ //opt_eq(bx,temp);
+ //}
template <typename T>
T sign(const T& a,const T& b)