|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51860 - sandbox/numeric_bindings/libs/numeric/bindings/tools/templates
From: rutger_at_[hidden]
Date: 2009-03-19 15:59:44
Author: rutger
Date: 2009-03-19 15:59:44 EDT (Thu, 19 Mar 2009)
New Revision: 51860
URL: http://svn.boost.org/trac/boost/changeset/51860
Log:
Added extra function sig in lapack base template
Text files modified:
sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.hpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.hpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.hpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/lapack.hpp 2009-03-19 15:59:44 EDT (Thu, 19 Mar 2009)
@@ -94,12 +94,21 @@
$TEMPLATE[level2_workspace]
// template function to call $groupname
template< $TYPES, typename Workspace >
-inline integer_t $groupname( $LEVEL2, Workspace work = optimal_workspace() ) {
+inline integer_t $groupname( $LEVEL2, Workspace work ) {
typedef typename traits::$TYPEOF_FIRST_TYPENAME_traits< $FIRST_TYPENAME >::value_type value_type;
integer_t info(0);
$groupname_impl< value_type >::compute( $CALL_LEVEL1, work );
return info;
}
+
+// template function to call $groupname, default workspace type
+template< $TYPES >
+inline integer_t $groupname( $LEVEL2 ) {
+ typedef typename traits::$TYPEOF_FIRST_TYPENAME_traits< $FIRST_TYPENAME >::value_type value_type;
+ integer_t info(0);
+ $groupname_impl< value_type >::compute( $CALL_LEVEL1, optimal_workspace() );
+ return info;
+}
$TEMPLATE[setup_min_workspace]
traits::detail::array< $WORKSPACE_TYPE > tmp_$NAME( min_size_$NAME( $CALL_MIN_SIZE ) );
$TEMPLATE[setup_opt_workspace]
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