Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59064 - in sandbox/numeric_bindings/boost/numeric/bindings/blas: . level1
From: rutger_at_[hidden]
Date: 2010-01-16 03:11:56


Author: rutger
Date: 2010-01-16 03:11:56 EST (Sat, 16 Jan 2010)
New Revision: 59064
URL: http://svn.boost.org/trac/boost/changeset/59064

Log:
added dotu, synonym of dot (to be complete with level1)

Added:
   sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/dotu.hpp (contents, props changed)
Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/blas/level1.hpp | 1 +
   sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp | 4 ++--
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/blas/level1.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1.hpp 2010-01-16 03:11:56 EST (Sat, 16 Jan 2010)
@@ -14,6 +14,7 @@
 #include <boost/numeric/bindings/blas/level1/copy.hpp>
 #include <boost/numeric/bindings/blas/level1/dotc.hpp>
 #include <boost/numeric/bindings/blas/level1/dot.hpp>
+#include <boost/numeric/bindings/blas/level1/dotu.hpp>
 #include <boost/numeric/bindings/blas/level1/drot.hpp>
 #include <boost/numeric/bindings/blas/level1/nrm2.hpp>
 #include <boost/numeric/bindings/blas/level1/rotg.hpp>

Added: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/dotu.hpp
==============================================================================
--- (empty file)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/dotu.hpp 2010-01-16 03:11:56 EST (Sat, 16 Jan 2010)
@@ -0,0 +1,42 @@
+//
+// Copyright (c) 2002--2010
+// Toon Knapen, Karl Meerbergen, Kresimir Fresl,
+// Thomas Klimpel and Rutger ter Borg
+//
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+
+#ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_DOTU_HPP
+#define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_DOTU_HPP
+
+#include <boost/numeric/bindings/blas/level1/dot.hpp>
+
+namespace boost {
+namespace numeric {
+namespace bindings {
+namespace blas {
+
+//
+// dotu is a synonym for dot
+//
+// Functions for direct use. These functions are overloaded for temporaries,
+// so that wrapped types can still be passed and used for write-access.
+//
+
+//
+// Overloaded function for dotu.
+//
+template< typename VectorX, typename VectorY >
+inline typename dot_impl< typename value< VectorX >::type >::return_type
+dotu( const VectorX& x, const VectorY& y ) {
+ return dot_impl< typename value< VectorX >::type >::invoke( x, y );
+}
+
+} // namespace blas
+} // namespace bindings
+} // namespace numeric
+} // namespace boost
+
+#endif

Modified: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp 2010-01-16 03:11:56 EST (Sat, 16 Jan 2010)
@@ -8,8 +8,8 @@
 // http://www.boost.org/LICENSE_1_0.txt)
 //
 
-#ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_EXT_SET_HPP
-#define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_EXT_SET_HPP
+#ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_SET_HPP
+#define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_SET_HPP
 
 #include <boost/assert.hpp>
 #include <boost/numeric/bindings/begin.hpp>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk