diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2011-07-06 14:30:02 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2011-07-06 14:30:02 +0000 |
commit | c9d59463a3d9059ebb09aa06610866438c36fba6 (patch) | |
tree | f7607bb4bbd17a526364a9ba0f8921d79ef8b4f8 | |
parent | c785b27355ccf0f1cc33b30b1ac088983c314ff2 (diff) | |
download | opt-utilities-c9d59463a3d9059ebb09aa06610866438c36fba6.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@213 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r-- | math/vector_operation.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/math/vector_operation.hpp b/math/vector_operation.hpp index 1f7c025..d149c41 100644 --- a/math/vector_operation.hpp +++ b/math/vector_operation.hpp @@ -24,11 +24,17 @@ namespace opt_utilities } template <typename T> + T contract1(const T& x1,const T& x2,...) + { + return x1*x2; + } + + template <typename T> T contract(const T& x1,const T& x2,...) { return x1*x2; } - + template <typename pT> typename element_type_trait<pT>::element_type contract(const pT& v1,const pT& v2,const typename element_type_trait<pT>::element_type&) @@ -40,7 +46,7 @@ namespace opt_utilities } return result; } - + } #endif |