|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59088 - sandbox/numeric_bindings/boost/numeric/bindings/blas/level1
From: rutger_at_[hidden]
Date: 2010-01-17 05:44:50
Author: rutger
Date: 2010-01-17 05:44:50 EST (Sun, 17 Jan 2010)
New Revision: 59088
URL: http://svn.boost.org/trac/boost/changeset/59088
Log:
updated scal to have an extra template argument
Text files modified:
sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/scal.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Modified: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/scal.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/scal.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/scal.hpp 2010-01-17 05:44:50 EST (Sun, 17 Jan 2010)
@@ -253,8 +253,8 @@
// * Deduces the required arguments for dispatching to BLAS, and
// * Asserts that most arguments make sense.
//
- template< typename VectorX >
- static return_type invoke( const value_type a, VectorX& x ) {
+ template< typename ScalarA, typename VectorX >
+ static return_type invoke( const ScalarA a, VectorX& x ) {
namespace bindings = ::boost::numeric::bindings;
BOOST_STATIC_ASSERT( (bindings::is_mutable< VectorX >::value) );
detail::scal( bindings::size(x), a, bindings::begin_value(x),
@@ -274,9 +274,9 @@
// Overloaded function for scal. Its overload differs for
// * VectorX&
//
-template< typename VectorX >
+template< typename ScalarA, typename VectorX >
inline typename scal_impl< typename value< VectorX >::type >::return_type
-scal( const typename value< VectorX >::type a, VectorX& x ) {
+scal( const ScalarA a, VectorX& x ) {
scal_impl< typename value< VectorX >::type >::invoke( a, x );
}
@@ -284,9 +284,9 @@
// Overloaded function for scal. Its overload differs for
// * const VectorX&
//
-template< typename VectorX >
+template< typename ScalarA, typename VectorX >
inline typename scal_impl< typename value< VectorX >::type >::return_type
-scal( const typename value< VectorX >::type a, const VectorX& x ) {
+scal( const ScalarA a, const VectorX& x ) {
scal_impl< typename value< VectorX >::type >::invoke( a, x );
}
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