Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58947 - sandbox/numeric_bindings/libs/numeric/bindings/tools
From: rutger_at_[hidden]
Date: 2010-01-12 12:24:20


Author: rutger
Date: 2010-01-12 12:24:18 EST (Tue, 12 Jan 2010)
New Revision: 58947
URL: http://svn.boost.org/trac/boost/changeset/58947

Log:
minor cleanup of netlib/generator

Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 10 +++++-----
   1 files changed, 5 insertions(+), 5 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 12:24:18 EST (Tue, 12 Jan 2010)
@@ -1205,6 +1205,11 @@
               # TODO
               # TODO
             else:
+ #
+ # Try to look for different matrices, e.g., if the code
+ # refers to Matrix A, then look for argument A, AB, and AP.
+ # Allocate the trait to the first matrix found (usually this is A).
+ #
               references = match_matrix_traits[0][3].split( 'and' )
               for matrix_name in references:
                 try_names = [ matrix_name.strip(),
@@ -1216,11 +1221,6 @@
                       argument_properties[ 'trait_type' ] = 'num_columns'
                       argument_properties[ 'trait_of' ] = [ try_name.strip() ]
 
- #elif match_matrix_traits[0][3] in grouped_arguments[ 'by_type' ][ 'matrix' ]:
- ## because it is both #rows and #columns, we have to choose one
- #argument_properties[ 'trait_type' ] = 'num_columns'
- #argument_properties[ 'trait_of' ] = [ match_matrix_traits[0][3].strip() ]
-
           # if we're not dealing with order
           else:
             references = match_matrix_traits[0][3].split( 'and' )


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