Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63109 - in sandbox/numeric_bindings/libs/numeric/bindings/tools: . templates/computational
From: thomas.klimpel_at_[hidden]
Date: 2010-06-19 15:02:15


Author: klimpel
Date: 2010-06-19 15:02:14 EDT (Sat, 19 Jun 2010)
New Revision: 63109
URL: http://svn.boost.org/trac/boost/changeset/63109

Log:
- Turned off perfect forwarding for Vector arguments, but not for VectorView arguments. The perfect forwarding can still be selectively reactivated, as done with trevc.hpp. The reasoning behind this decision is that there are no obvious adapters for Vector arguments that would guarantee a stride equal to 1. As the size of the generated code is reduced from ~100MB to ~10MB as a consequence of this change, the advantages of this change seem to dominate over the disadvantages.
Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py | 1 +
   sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/computational/trevc.hpp | 2 +-
   2 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py 2010-06-19 15:02:14 EDT (Sat, 19 Jun 2010)
@@ -285,6 +285,7 @@
            'ptrdiff_t' not in argument and \
            'typename' not in argument and \
            '$LIBRARY_INT_TYPE' not in argument and \
+ ('Vector' not in argument or 'VectorView' in argument) and \
            '&' in argument:
             permute_indices.append( i )
         else:

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/computational/trevc.hpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/computational/trevc.hpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/computational/trevc.hpp 2010-06-19 15:02:14 EDT (Sat, 19 Jun 2010)
@@ -1,3 +1,3 @@
 $TEMPLATE[trevc.real.T.level2_permute]
-$TEMPLATE[trevc.complex.SELECT.level2_permute]
+$TEMPLATE[trevc.all.SELECT.level2_permute]
 $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