Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58830 - in sandbox/numeric_bindings/libs/numeric/bindings/tools: . templates/driver
From: rutger_at_[hidden]
Date: 2010-01-09 07:14:00


Author: rutger
Date: 2010-01-09 07:13:59 EST (Sat, 09 Jan 2010)
New Revision: 58830
URL: http://svn.boost.org/trac/boost/changeset/58830

Log:
Added the possibility to overrule the IO setting of arguments; updated gelsd

Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 8 ++++++++
   sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/driver/gelsd.hpp | 3 ++-
   2 files changed, 10 insertions(+), 1 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-09 07:13:59 EST (Sat, 09 Jan 2010)
@@ -1036,6 +1036,14 @@
           argument_map[ argument_name ][ 'comment_lines' ] = [ comment_line_nr ]
           split_regex = re.compile( '\/| or ' )
           argument_map[ argument_name ][ 'io' ] = split_regex.split( match_lapack_style.group(2) )
+ # If you want to override the detected io type of an argument,
+ # add a template like gelsd.real.A.io with contents of the io-type separated by ';'
+ override_io_key = subroutine_group_name.lower() + '.' + subroutine_value_type + '.' + \
+ argument_name + '.io'
+ if my_has_key( override_io_key, template_map ):
+ argument_map[ argument_name ][ 'io' ] = \
+ template_map[ my_has_key( override_io_key, template_map ) ].strip().split( ";" )
+ # continue
           if preceding_argument != '':
             argument_map[ preceding_argument ][ 'comment_lines' ] += [ comment_line_nr ]
           preceding_argument = argument_name

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/driver/gelsd.hpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/driver/gelsd.hpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/driver/gelsd.hpp 2010-01-09 07:13:59 EST (Sat, 09 Jan 2010)
@@ -26,5 +26,6 @@
 $TEMPLATE[gelsd.real.min_size_work]
 $INTEGER_TYPE smlsiz_plus_one = smlsiz + 1;
 return std::max< $INTEGER_TYPE >( 1, 12*minmn + 2*minmn*smlsiz + 8*minmn*nlvl + minmn*nrhs + smlsiz_plus_one * smlsiz_plus_one );
-$TEMPLATE[gelsd.real.A.level2_permute]
+$TEMPLATE[gelsd.real.A.io]
+input;output
 $TEMPLATE[end]


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