Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58939 - sandbox/numeric_bindings/libs/numeric/bindings/tools
From: rutger_at_[hidden]
Date: 2010-01-12 08:29:50


Author: rutger
Date: 2010-01-12 08:29:49 EST (Tue, 12 Jan 2010)
New Revision: 58939
URL: http://svn.boost.org/trac/boost/changeset/58939

Log:
proper support for band uplo detection

Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

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-01-12 08:29:49 EST (Tue, 12 Jan 2010)
@@ -216,7 +216,8 @@
         result = "bandwidth_upper_op(" + properties[ 'trait_of' ][ 0 ].lower() + \
             ", " + arg_map[ properties[ 'trait_of' ][ 0 ] ][ 'ref_trans' ].lower() + "())"
 
- if properties[ 'trait_type' ] == 'num_super_uplo':
+ if properties[ 'trait_type' ] == 'num_super_uplo' or \
+ properties[ 'trait_type' ] == 'num_sub_uplo':
         result = "bandwidth(" + properties[ 'trait_of' ][ 0 ].lower() + \
             ", uplo())"
 
@@ -1182,7 +1183,7 @@
         #
         match_matrix_traits = re.compile( '(sub|super|rows|columns|order)([\-]?diagonals|with|in|of|the|band|input|\s)+(matrix|matrices|\s)+' + \
             '([A-Z]+\s+and\s+[A-Z]+|[A-Z]+)', re.M | re.S ).findall( comment_block )
- match_banded_uplo = re.compile( '(number|of|sub|super|diagonals|if|UPLO)', re.M | re.S ).findall( comment_block )
+ match_banded_uplo = re.compile( '(number|of|sub|super|\s)+diagonals(if|\s)+UPLO', re.M | re.S ).findall( comment_block )
         if len( match_matrix_traits ) == 1:
           print "Matched trait:", match_matrix_traits
           if match_matrix_traits[0][0] == 'order':


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