/usr/include/boost/numeric/odeint/stepper
NameSizeModeActions
base/-0755rm
detail/-0755rm
generation/-0755rm
adams_bashforth.hpp152640644editdlrm
adams_bashforth_moulton.hpp120150644editdlrm
adams_moulton.hpp61120644editdlrm
adaptive_adams_bashforth_moulton.hpp83110644editdlrm
bulirsch_stoer.hpp261890644editdlrm
bulirsch_stoer_dense_out.hpp338590644editdlrm
controlled_adams_bashforth_moulton.hpp100800644editdlrm
controlled_runge_kutta.hpp383010644editdlrm
controlled_step_result.hpp10920644editdlrm
dense_output_runge_kutta.hpp145900644editdlrm
euler.hpp65870644editdlrm
explicit_error_generic_rk.hpp107080644editdlrm
explicit_generic_rk.hpp84910644editdlrm
extrapolation_stepper.hpp111550644editdlrm
generation.hpp14770644editdlrm
implicit_euler.hpp52360644editdlrm
modified_midpoint.hpp105660644editdlrm
rosenbrock4.hpp146020644editdlrm
rosenbrock4_controller.hpp72900644editdlrm
rosenbrock4_dense_output.hpp55950644editdlrm
runge_kutta4.hpp58600644editdlrm
runge_kutta4_classic.hpp92550644editdlrm
runge_kutta_cash_karp54.hpp86760644editdlrm
runge_kutta_cash_karp54_classic.hpp143180644editdlrm
runge_kutta_dopri5.hpp214840644editdlrm
runge_kutta_fehlberg78.hpp150050644editdlrm
stepper_categories.hpp21620644editdlrm
symplectic_euler.hpp39370644editdlrm
symplectic_rkn_sb3a_m4_mclachlan.hpp51200644editdlrm
symplectic_rkn_sb3a_mclachlan.hpp53890644editdlrm
velocity_verlet.hpp135440644editdlrm
Edit: /usr/include/boost/numeric/odeint/stepper/runge_kutta4.hpp (5860B)
/* [auto_generated] boost/numeric/odeint/stepper/runge_kutta4.hpp [begin_description] Implementation of the classical Runge-Kutta stepper with the generic stepper. [end_description] Copyright 2011-2013 Mario Mulansky Copyright 2011-2013 Karsten Ahnert Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_NUMERIC_ODEINT_STEPPER_RUNGE_KUTTA4_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_STEPPER_RUNGE_KUTTA4_HPP_INCLUDED #include #include #include #include #include #include #include #include #include namespace boost { namespace numeric { namespace odeint { #ifndef DOXYGEN_SKIP template< class Value = double > struct rk4_coefficients_a1 : boost::array< Value , 1 > { rk4_coefficients_a1( void ) { (*this)[0] = static_cast< Value >( 1 ) / static_cast< Value >( 2 ); } }; template< class Value = double > struct rk4_coefficients_a2 : boost::array< Value , 2 > { rk4_coefficients_a2( void ) { (*this)[0] = static_cast(0); (*this)[1] = static_cast< Value >( 1 ) / static_cast< Value >( 2 ); } }; template< class Value = double > struct rk4_coefficients_a3 : boost::array< Value , 3 > { rk4_coefficients_a3( void ) { (*this)[0] = static_cast(0); (*this)[1] = static_cast(0); (*this)[2] = static_cast(1); } }; template< class Value = double > struct rk4_coefficients_b : boost::array< Value , 4 > { rk4_coefficients_b( void ) { (*this)[0] = static_cast(1)/static_cast(6); (*this)[1] = static_cast(1)/static_cast(3); (*this)[2] = static_cast(1)/static_cast(3); (*this)[3] = static_cast(1)/static_cast(6); } }; template< class Value = double > struct rk4_coefficients_c : boost::array< Value , 4 > { rk4_coefficients_c( void ) { (*this)[0] = static_cast(0); (*this)[1] = static_cast< Value >( 1 ) / static_cast< Value >( 2 ); (*this)[2] = static_cast< Value >( 1 ) / static_cast< Value >( 2 ); (*this)[3] = static_cast(1); } }; #endif template< class State , class Value = double , class Deriv = State , class Time = Value , class Algebra = typename algebra_dispatcher< State >::algebra_type , class Operations = typename operations_dispatcher< State >::operations_type , class Resizer = initially_resizer > #ifndef DOXYGEN_SKIP class runge_kutta4 : public explicit_generic_rk< 4 , 4 , State , Value , Deriv , Time , Algebra , Operations , Resizer > #else class runge_kutta4 : public explicit_generic_rk #endif { public: #ifndef DOXYGEN_SKIP typedef explicit_generic_rk< 4 , 4 , State , Value , Deriv , Time , Algebra , Operations , Resizer > stepper_base_type; #endif typedef typename stepper_base_type::state_type state_type; typedef typename stepper_base_type::value_type value_type; typedef typename stepper_base_type::deriv_type deriv_type; typedef typename stepper_base_type::time_type time_type; typedef typename stepper_base_type::algebra_type algebra_type; typedef typename stepper_base_type::operations_type operations_type; typedef typename stepper_base_type::resizer_type resizer_type; #ifndef DOXYGEN_SKIP typedef typename stepper_base_type::wrapped_state_type wrapped_state_type; typedef typename stepper_base_type::wrapped_deriv_type wrapped_deriv_type; typedef typename stepper_base_type::stepper_type stepper_type; #endif runge_kutta4( const algebra_type &algebra = algebra_type() ) : stepper_base_type( boost::fusion::make_vector( rk4_coefficients_a1() , rk4_coefficients_a2() , rk4_coefficients_a3() ) , rk4_coefficients_b() , rk4_coefficients_c() , algebra ) { } }; /** * \class runge_kutta4 * \brief The classical Runge-Kutta stepper of fourth order. * * The Runge-Kutta method of fourth order is one standard method for * solving ordinary differential equations and is widely used, see also * en.wikipedia.org/wiki/Runge-Kutta_methods * The method is explicit and fulfills the Stepper concept. Step size control * or continuous output are not provided. * * This class derives from explicit_stepper_base and inherits its interface via CRTP (current recurring template pattern). * Furthermore, it derivs from explicit_generic_rk which is a generic Runge-Kutta algorithm. For more details see * explicit_stepper_base and explicit_generic_rk. * * \tparam State The state type. * \tparam Value The value type. * \tparam Deriv The type representing the time derivative of the state. * \tparam Time The time representing the independent variable - the time. * \tparam Algebra The algebra type. * \tparam Operations The operations type. * \tparam Resizer The resizer policy type. */ /** * \fn runge_kutta4::runge_kutta4( const algebra_type &algebra = algebra_type() ) * \brief Constructs the runge_kutta4 class. This constructor can be used as a default * constructor if the algebra has a default constructor. * \param algebra A copy of algebra is made and stored inside explicit_stepper_base. */ } } } #endif // BOOST_NUMERIC_ODEINT_STEPPER_RUNGE_KUTTA4_HPP_INCLUDED