Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59069 - sandbox/numeric_bindings/boost/numeric/bindings/blas/level1
From: rutger_at_[hidden]
Date: 2010-01-16 05:09:25


Author: rutger
Date: 2010-01-16 05:09:24 EST (Sat, 16 Jan 2010)
New Revision: 59069
URL: http://svn.boost.org/trac/boost/changeset/59069

Log:
trait fix of rot

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rot.hpp | 41 +++++++++++++--------------------------
   1 files changed, 14 insertions(+), 27 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rot.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rot.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rot.hpp 2010-01-16 05:09:24 EST (Sat, 16 Jan 2010)
@@ -204,16 +204,15 @@
     // * Asserts that most arguments make sense.
     //
     template< typename VectorX, typename VectorY >
- static return_type invoke( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, const real_type c,
+ static return_type invoke( VectorX& x, VectorY& y, const real_type c,
             const real_type s ) {
         namespace bindings = ::boost::numeric::bindings;
         BOOST_STATIC_ASSERT( (is_same< typename remove_const< typename value<
                 VectorX >::type >::type, typename remove_const<
                 typename value< VectorY >::type >::type >::value) );
- detail::rot( n, bindings::begin_value(x), incx,
- bindings::begin_value(y), incy, c, s );
+ detail::rot( bindings::size(x), bindings::begin_value(x),
+ bindings::stride(x), bindings::begin_value(y),
+ bindings::stride(y), c, s );
     }
 };
 
@@ -232,14 +231,11 @@
 //
 template< typename VectorX, typename VectorY >
 inline typename rot_impl< typename value< VectorX >::type >::return_type
-rot( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, const typename remove_imaginary<
+rot( VectorX& x, VectorY& y, const typename remove_imaginary<
         typename value< VectorX >::type >::type c,
         const typename remove_imaginary< typename value<
         VectorX >::type >::type s ) {
- rot_impl< typename value< VectorX >::type >::invoke( n, x, incx, y,
- incy, c, s );
+ rot_impl< typename value< VectorX >::type >::invoke( x, y, c, s );
 }
 
 //
@@ -249,14 +245,11 @@
 //
 template< typename VectorX, typename VectorY >
 inline typename rot_impl< typename value< VectorX >::type >::return_type
-rot( const std::ptrdiff_t n, const VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, const typename remove_imaginary<
+rot( const VectorX& x, VectorY& y, const typename remove_imaginary<
         typename value< VectorX >::type >::type c,
         const typename remove_imaginary< typename value<
         VectorX >::type >::type s ) {
- rot_impl< typename value< VectorX >::type >::invoke( n, x, incx, y,
- incy, c, s );
+ rot_impl< typename value< VectorX >::type >::invoke( x, y, c, s );
 }
 
 //
@@ -266,14 +259,11 @@
 //
 template< typename VectorX, typename VectorY >
 inline typename rot_impl< typename value< VectorX >::type >::return_type
-rot( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, const VectorY& y,
- const std::ptrdiff_t incy, const typename remove_imaginary<
+rot( VectorX& x, const VectorY& y, const typename remove_imaginary<
         typename value< VectorX >::type >::type c,
         const typename remove_imaginary< typename value<
         VectorX >::type >::type s ) {
- rot_impl< typename value< VectorX >::type >::invoke( n, x, incx, y,
- incy, c, s );
+ rot_impl< typename value< VectorX >::type >::invoke( x, y, c, s );
 }
 
 //
@@ -283,14 +273,11 @@
 //
 template< typename VectorX, typename VectorY >
 inline typename rot_impl< typename value< VectorX >::type >::return_type
-rot( const std::ptrdiff_t n, const VectorX& x,
- const std::ptrdiff_t incx, const VectorY& y,
- const std::ptrdiff_t incy, const typename remove_imaginary<
- typename value< VectorX >::type >::type c,
+rot( const VectorX& x, const VectorY& y,
         const typename remove_imaginary< typename value<
- VectorX >::type >::type s ) {
- rot_impl< typename value< VectorX >::type >::invoke( n, x, incx, y,
- incy, c, s );
+ VectorX >::type >::type c, const typename remove_imaginary<
+ typename value< VectorX >::type >::type s ) {
+ rot_impl< typename value< VectorX >::type >::invoke( x, y, c, s );
 }
 
 } // namespace blas


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