Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59123 - sandbox/numeric_bindings/boost/numeric/bindings/blas/level1
From: rutger_at_[hidden]
Date: 2010-01-18 07:46:27


Author: rutger
Date: 2010-01-18 07:46:25 EST (Mon, 18 Jan 2010)
New Revision: 59123
URL: http://svn.boost.org/trac/boost/changeset/59123

Log:
rotm traits corrections (binding part)

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rotm.hpp | 57 ++++++++++++++-------------------------
   1 files changed, 20 insertions(+), 37 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rotm.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rotm.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/rotm.hpp 2010-01-18 07:46:25 EST (Mon, 18 Jan 2010)
@@ -138,9 +138,7 @@
     // * Asserts that most arguments make sense.
     //
     template< typename VectorX, typename VectorY, typename VectorPARAM >
- static return_type invoke( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, VectorPARAM& param ) {
+ static return_type invoke( VectorX& x, VectorY& y, VectorPARAM& param ) {
         namespace bindings = ::boost::numeric::bindings;
         BOOST_STATIC_ASSERT( (is_same< typename remove_const<
                 typename bindings::value_type< VectorX >::type >::type,
@@ -153,8 +151,9 @@
         BOOST_STATIC_ASSERT( (bindings::is_mutable< VectorX >::value) );
         BOOST_STATIC_ASSERT( (bindings::is_mutable< VectorY >::value) );
         BOOST_STATIC_ASSERT( (bindings::is_mutable< VectorPARAM >::value) );
- detail::rotm( n, bindings::begin_value(x), incx,
- bindings::begin_value(y), incy, bindings::begin_value(param) );
+ detail::rotm( bindings::size(x), bindings::begin_value(x),
+ bindings::stride(x), bindings::begin_value(y),
+ bindings::stride(y), bindings::begin_value(param) );
     }
 };
 
@@ -175,11 +174,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, VectorPARAM& param ) {
+rotm( VectorX& x, VectorY& y, VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -191,11 +188,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, const VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, VectorPARAM& param ) {
+rotm( const VectorX& x, VectorY& y, VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -207,11 +202,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, const VectorY& y,
- const std::ptrdiff_t incy, VectorPARAM& param ) {
+rotm( VectorX& x, const VectorY& y, VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -223,11 +216,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, const VectorX& x,
- const std::ptrdiff_t incx, const VectorY& y,
- const std::ptrdiff_t incy, VectorPARAM& param ) {
+rotm( const VectorX& x, const VectorY& y, VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -239,11 +230,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, const VectorPARAM& param ) {
+rotm( VectorX& x, VectorY& y, const VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -255,11 +244,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, const VectorX& x,
- const std::ptrdiff_t incx, VectorY& y,
- const std::ptrdiff_t incy, const VectorPARAM& param ) {
+rotm( const VectorX& x, VectorY& y, const VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -271,11 +258,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, VectorX& x,
- const std::ptrdiff_t incx, const VectorY& y,
- const std::ptrdiff_t incy, const VectorPARAM& param ) {
+rotm( VectorX& x, const VectorY& y, const VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 //
@@ -287,11 +272,9 @@
 template< typename VectorX, typename VectorY, typename VectorPARAM >
 inline typename rotm_impl< typename bindings::value_type<
         VectorX >::type >::return_type
-rotm( const std::ptrdiff_t n, const VectorX& x,
- const std::ptrdiff_t incx, const VectorY& y,
- const std::ptrdiff_t incy, const VectorPARAM& param ) {
+rotm( const VectorX& x, const VectorY& y, const VectorPARAM& param ) {
     rotm_impl< typename bindings::value_type<
- VectorX >::type >::invoke( n, x, incx, y, incy, param );
+ VectorX >::type >::invoke( x, y, param );
 }
 
 } // 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