diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-12-25 15:43:10 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-12-25 15:43:10 +0000 |
commit | 231e7f7334bd731b4a808d36d0c6a1e0ba395a71 (patch) | |
tree | bacf6e727e328f9f0a5f36fd070583439664a524 /misc/optvec.hpp | |
parent | 4170b13f464439ab97efadb210dab0d749fa4b42 (diff) | |
download | opt-utilities-231e7f7334bd731b4a808d36d0c6a1e0ba395a71.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@104 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'misc/optvec.hpp')
-rw-r--r-- | misc/optvec.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/misc/optvec.hpp b/misc/optvec.hpp index 925040d..cc85ccf 100644 --- a/misc/optvec.hpp +++ b/misc/optvec.hpp @@ -260,13 +260,13 @@ namespace opt_utilities return false; } -}; +} -#define DEF_VEC_FUNC(_func) template <typename T> \ +#define DEF_VEC_FUNC(_func) template <typename T> \ opt_utilities::optvec<T> _func(const opt_utilities::optvec<T>& x) \ - { \ - opt_utilities::optvec<T> result(x.size()); \ + { \ + opt_utilities::optvec<T> result(x.size()); \ for(int i=0;i!=result.size();++i) \ { \ result[i]=_func(x[i]); \ @@ -276,11 +276,11 @@ namespace opt_utilities namespace std { - DEF_VEC_FUNC(sin); - DEF_VEC_FUNC(cos); - DEF_VEC_FUNC(log); - DEF_VEC_FUNC(sqrt); - DEF_VEC_FUNC(exp); + DEF_VEC_FUNC(sin) + DEF_VEC_FUNC(cos) + DEF_VEC_FUNC(log) + DEF_VEC_FUNC(sqrt) + DEF_VEC_FUNC(exp) template<typename T> opt_utilities::optvec<T> pow(const opt_utilities::optvec<T>& x,const T& y) { |