Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64981 - in sandbox/numeric_bindings: boost/numeric/bindings/lapack/auxiliary boost/numeric/bindings/lapack/computational libs/numeric/bindings/tools
From: rutger_at_[hidden]
Date: 2010-08-24 05:04:27


Author: rutger
Date: 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
New Revision: 64981
URL: http://svn.boost.org/trac/boost/changeset/64981

Log:
Another attempt to remove the warnings of unused parameters in level-0 dispatching code

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larf.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larfx.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larz.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/opmtr.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormbr.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormhr.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormlq.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormql.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormqr.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrq.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrz.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormtr.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmbr.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmhr.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmlq.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmql.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmqr.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrq.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrz.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmtr.hpp | 8 ++++----
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/upmtr.hpp | 8 ++++----
   sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py | 18 +++++++++++++++++-
   sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 7 +------
   23 files changed, 84 insertions(+), 73 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larf.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larf.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larf.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -197,8 +197,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -279,8 +279,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larfx.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larfx.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larfx.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -194,8 +194,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         std::ptrdiff_t order = bindings::detail::if_left( side, n, m );
         if ( order < 11)
             return 1;
@@ -278,8 +278,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         std::ptrdiff_t order = bindings::detail::if_left( side, n, m );
         if ( order < 11)
             return 1;

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larz.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larz.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/auxiliary/larz.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -201,8 +201,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -285,8 +285,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/opmtr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/opmtr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/opmtr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -171,8 +171,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormbr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormbr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormbr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -190,8 +190,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormhr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormhr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormhr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -189,8 +189,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormlq.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormlq.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormlq.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -188,8 +188,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormql.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormql.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormql.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -187,8 +187,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormqr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormqr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormqr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -186,8 +186,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrq.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrq.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrq.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -188,8 +188,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrz.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrz.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormrz.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -191,8 +191,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormtr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormtr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/ormtr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -188,8 +188,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmbr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmbr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmbr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -237,8 +237,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -347,8 +347,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmhr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmhr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmhr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -236,8 +236,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -345,8 +345,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmlq.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmlq.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmlq.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -235,8 +235,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -346,8 +346,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmql.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmql.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmql.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -234,8 +234,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -343,8 +343,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmqr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmqr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmqr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -233,8 +233,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -341,8 +341,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrq.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrq.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrq.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -235,8 +235,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -346,8 +346,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrz.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrz.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmrz.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -238,8 +238,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -350,8 +350,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmtr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmtr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/unmtr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -235,8 +235,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -344,8 +344,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/upmtr.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/upmtr.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/upmtr.hpp 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -214,8 +214,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }
@@ -312,8 +312,8 @@
     // workspace-array work.
     //
     template< typename Side >
- static std::ptrdiff_t min_size_work( const Side, const std::ptrdiff_t m,
- const std::ptrdiff_t n ) {
+ static std::ptrdiff_t min_size_work( const Side side,
+ const std::ptrdiff_t m, const std::ptrdiff_t n ) {
         return std::max< std::ptrdiff_t >( 1, bindings::detail::if_left( side,
                 n, m ) );
     }

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -135,11 +135,20 @@
         clapack_arg_list = []
         typename_list = []
         level0_static_asserts = []
+ check_for_unused = []
 
         for arg in info_map[ subroutine ][ 'arguments' ]:
             print "Subroutine ", subroutine, " arg ", arg
             if info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'level_0' ] != None:
                 arg_list += [ info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'level_0' ] ]
+ #
+ # Find potential arguments that may cause warnings because they are not used, and
+ # store these in check_for_unused
+ #
+ if info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'level_0' ] != None and \
+ info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'level_0_typename' ] != None:
+ keyword = info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'level_0' ].split( ' ')[-1]
+ check_for_unused += [ keyword ]
             if info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'call_lapack_header' ] != None:
                 lapack_arg_list += [ info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'call_lapack_header' ] ]
             if have_clapack and info_map[ subroutine ][ 'argument_map' ][ arg ][ 'code' ][ 'call_clapack_header' ] != None:
@@ -176,7 +185,14 @@
         else:
             clapack_routine = '// NOT FOUND'
         sub_template = sub_template.replace( "$CLAPACK_ROUTINE", clapack_routine )
-
+
+ #
+ # Count potentially unused arguments. If the count is 1; it is only present in the
+ # parameter list. In that case, the argument may be removed from the code
+ #
+ for parameter in check_for_unused:
+ if sub_template.count( parameter ) == 1:
+ sub_template = sub_template.replace( ' ' + parameter, '' )
 
         # Finalize this sub_overload
         sub_overloads += bindings.proper_indent( sub_template )

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py 2010-08-24 05:04:23 EDT (Tue, 24 Aug 2010)
@@ -124,12 +124,7 @@
 def level0_type( name, properties ):
     result = cpp_type( name, properties )
     if template_tag_type( name, properties ) != None:
- #
- # To prevent warnings about unused paramers, just write
- # ..., const Side, ..., i.e., without the lowercased name. Used to be
- # result = 'const ' + template_parameter[ name ] + ' ' + name.lower()
- #
- result = 'const ' + template_parameter[ name ]
+ result = 'const ' + template_parameter[ name ] + ' ' + name.lower()
     if name == 'INFO':
         result = None
     return result


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