summaryrefslogtreecommitdiff
path: root/boost/numeric/odeint/algebra/multi_array_algebra.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/numeric/odeint/algebra/multi_array_algebra.hpp')
-rw-r--r--boost/numeric/odeint/algebra/multi_array_algebra.hpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/boost/numeric/odeint/algebra/multi_array_algebra.hpp b/boost/numeric/odeint/algebra/multi_array_algebra.hpp
index 0bc476e631..f0ae30e4f4 100644
--- a/boost/numeric/odeint/algebra/multi_array_algebra.hpp
+++ b/boost/numeric/odeint/algebra/multi_array_algebra.hpp
@@ -19,6 +19,8 @@
#define BOOST_NUMERIC_ODEINT_ALGEBRA_MULTI_ARRAY_ALGEBRA_HPP_DEFINED
+#include <boost/multi_array.hpp>
+
#include <boost/numeric/odeint/algebra/detail/for_each.hpp>
#include <boost/numeric/odeint/algebra/detail/norm_inf.hpp>
#include <boost/numeric/odeint/algebra/norm_result_type.hpp>
@@ -121,7 +123,7 @@ struct multi_array_algebra
{
detail::for_each15( s1.data() , s1.data() + s1.num_elements() , s2.data() , s3.data() , s4.data() , s5.data() , s6.data() , s7.data() , s8.data() , s9.data() , s10.data() , s11.data() , s12.data() , s13.data() , s14.data() , s15.data() , op );
}
-
+
template< typename S >
static typename norm_result_type<S>::type norm_inf( const S &s )
{
@@ -129,15 +131,11 @@ struct multi_array_algebra
}
};
-// template< class T , size_t N >
-// struct algebra_dispatcher< boost::array< T , N > >
-// {
-// typedef array_algebra algebra_type;
-// };
-
-
-
-
+template< class T , size_t N >
+struct algebra_dispatcher< boost::multi_array< T , N > >
+{
+ typedef multi_array_algebra algebra_type;
+};
} // namespace odeint