Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63894 - in sandbox/numeric_bindings: boost/numeric/bindings/lapack boost/numeric/bindings/lapack/computational libs/numeric/bindings/tools
From: thomas.klimpel_at_[hidden]
Date: 2010-07-11 18:50:59


Author: klimpel
Date: 2010-07-11 18:50:56 EDT (Sun, 11 Jul 2010)
New Revision: 63894
URL: http://svn.boost.org/trac/boost/changeset/63894

Log:
improve code generation for computational/hsein.hpp
Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational.hpp | 2 +-
   sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/hsein.hpp | 6 +++---
   sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 4 +++-
   3 files changed, 7 insertions(+), 5 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational.hpp 2010-07-11 18:50:56 EDT (Sun, 11 Jul 2010)
@@ -56,7 +56,7 @@
 #include <boost/numeric/bindings/lapack/computational/gebak.hpp>
 #include <boost/numeric/bindings/lapack/computational/gebal.hpp>
 #include <boost/numeric/bindings/lapack/computational/gehrd.hpp>
-//#include <boost/numeric/bindings/lapack/computational/hsein.hpp>
+#include <boost/numeric/bindings/lapack/computational/hsein.hpp>
 #include <boost/numeric/bindings/lapack/computational/hseqr.hpp>
 #include <boost/numeric/bindings/lapack/computational/orghr.hpp>
 #include <boost/numeric/bindings/lapack/computational/ormhr.hpp>

Modified: sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/hsein.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/hsein.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/lapack/computational/hsein.hpp 2010-07-11 18:50:56 EDT (Sun, 11 Jul 2010)
@@ -194,7 +194,7 @@
         BOOST_ASSERT( bindings::size(select) >= bindings::size_column(h) );
         BOOST_ASSERT( bindings::size(wi) >= bindings::size_column(h) );
         BOOST_ASSERT( bindings::size(work.select(real_type())) >=
- min_size_work( bindings::size_column(h), ?2 ));
+ min_size_work( bindings::size_column(h) ));
         BOOST_ASSERT( bindings::size(wr) >= bindings::size_column(h) );
         BOOST_ASSERT( bindings::size_column(h) >= 0 );
         BOOST_ASSERT( bindings::size_minor(h) == 1 ||
@@ -234,7 +234,7 @@
             VectorIFAILL& ifaill, VectorIFAILR& ifailr, minimal_workspace ) {
         namespace bindings = ::boost::numeric::bindings;
         bindings::detail::array< real_type > tmp_work( min_size_work(
- bindings::size_column(h), ?2 ) );
+ bindings::size_column(h) ) );
         return invoke( side, eigsrc, initv, select, h, wr, wi, vl, vr, mm, m,
                 ifaill, ifailr, workspace( tmp_work ) );
     }
@@ -263,7 +263,7 @@
     // Static member function that returns the minimum size of
     // workspace-array work.
     //
- static std::ptrdiff_t min_size_work( const std::ptrdiff_t n, ?? ) {
+ static std::ptrdiff_t min_size_work( const std::ptrdiff_t n ) {
         return (n+2)*n;
     }
 };

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-07-11 18:50:56 EDT (Sun, 11 Jul 2010)
@@ -391,7 +391,9 @@
 
   else:
     for a in arg:
- result.append( a )
+ if a != None and re.compile( '^[A-Z]+$' ).match( a ) != None and \
+ a not in result:
+ result.append( a )
 
   print "returning ",result
   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