From c9d59463a3d9059ebb09aa06610866438c36fba6 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Wed, 6 Jul 2011 14:30:02 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@213 ed2142bd-67ad-457f-ba7c-d818d4011675 --- math/vector_operation.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'math') 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 @@ -23,12 +23,18 @@ namespace opt_utilities return result; } + template + T contract1(const T& x1,const T& x2,...) + { + return x1*x2; + } + template T contract(const T& x1,const T& x2,...) { return x1*x2; } - + template typename element_type_trait::element_type contract(const pT& v1,const pT& v2,const typename element_type_trait::element_type&) @@ -40,7 +46,7 @@ namespace opt_utilities } return result; } - + } #endif -- cgit v1.2.2