|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71659 - sandbox/odeint/branches/karsten/boost/numeric/odeint/algebra
From: mario.mulansky_at_[hidden]
Date: 2011-05-02 03:40:56
Author: mariomulansky
Date: 2011-05-02 03:40:55 EDT (Mon, 02 May 2011)
New Revision: 71659
URL: http://svn.boost.org/trac/boost/changeset/71659
Log:
algebra
Text files modified:
sandbox/odeint/branches/karsten/boost/numeric/odeint/algebra/array_algebra.hpp | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
Modified: sandbox/odeint/branches/karsten/boost/numeric/odeint/algebra/array_algebra.hpp
==============================================================================
--- sandbox/odeint/branches/karsten/boost/numeric/odeint/algebra/array_algebra.hpp (original)
+++ sandbox/odeint/branches/karsten/boost/numeric/odeint/algebra/array_algebra.hpp 2011-05-02 03:40:55 EDT (Mon, 02 May 2011)
@@ -78,6 +78,19 @@
for( size_t i=0 ; i<dim ; ++i )
op( s1[i] , s2[i] , s3[i] , s4[i] , s5[i] , s6[i] );
}
+
+ template< typename T , size_t dim , class Op >
+ static void for_each7( boost::array< T , dim > &s1 ,
+ const boost::array< T , dim > &s2 ,
+ const boost::array< T , dim > &s3 ,
+ const boost::array< T , dim > &s4 ,
+ const boost::array< T , dim > &s5 ,
+ const boost::array< T , dim > &s6 ,
+ const boost::array< T , dim > &s7 , Op op )
+ {
+ for( size_t i=0 ; i<dim ; ++i )
+ op( s1[i] , s2[i] , s3[i] , s4[i] , s5[i] , s6[i] , s7[i] );
+ }
};
}
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