You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
6 years ago
|
//
|
||
|
// 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 bindings::value_type< VectorX >::type >::result_type
|
||
|
dotu( const VectorX& x, const VectorY& y ) {
|
||
|
return dot_impl< typename bindings::value_type< VectorX >::type >::invoke( x, y );
|
||
|
}
|
||
|
|
||
|
} // namespace blas
|
||
|
} // namespace bindings
|
||
|
} // namespace numeric
|
||
|
} // namespace boost
|
||
|
|
||
|
#endif
|