|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63108 - in sandbox/numeric_bindings/libs/numeric/bindings/tools: . templates/level1
From: thomas.klimpel_at_[hidden]
Date: 2010-06-19 14:58:38
Author: klimpel
Date: 2010-06-19 14:58:37 EDT (Sat, 19 Jun 2010)
New Revision: 63108
URL: http://svn.boost.org/trac/boost/changeset/63108
Log:
- Introduced the name VectorView for Vector argument that are able to handles strides. This improves the documentation, as it clarifies which arguments can be used with a row/column view adapter or any other adapter with a stride different from 1.
Text files modified:
sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 10 ++++++++--
sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/scal.hpp | 2 --
2 files changed, 8 insertions(+), 4 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-06-19 14:58:37 EDT (Sat, 19 Jun 2010)
@@ -263,7 +263,10 @@
if properties[ 'io' ] == [ 'input' ]:
result = 'const ' + result
elif properties[ 'type' ] == 'vector':
- result = "Vector" + name + "& " + name.lower()
+ if 'ref_stride' in properties:
+ result = "VectorView" + name + "& " + name.lower()
+ else:
+ result = "Vector" + name + "& " + name.lower()
if properties[ 'io' ] == [ 'input' ]:
result = 'const ' + result
else:
@@ -307,7 +310,10 @@
if properties[ 'type' ] == 'matrix':
result = "typename Matrix" + name
if properties[ 'type' ] == 'vector':
- result = "typename Vector" + name
+ if 'ref_stride' in properties:
+ result = "typename VectorView" + name
+ else:
+ result = "typename Vector" + name
if template_tag_type( name, properties ) == 'passthrough':
result = "typename " + template_parameter[ name ]
return result
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/scal.hpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/scal.hpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/scal.hpp 2010-06-19 14:58:37 EDT (Sat, 19 Jun 2010)
@@ -9,8 +9,6 @@
A (input) DATATYPE
$TEMPLATE[scal.all.cblas_alias]
A,ALPHA
-$TEMPLATE[scal.all.first_typename]
-VectorX
$TEMPLATE[scal.complex.A.code.level_1]
const ScalarA a
$TEMPLATE[scal.complex.A.code.level_1_type]
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