/
usr
/
include
/
boost
/
numeric
/
odeint
/
stepper
/
/usr/include/boost/numeric/odeint/stepper
mkdir
upload
Name
Size
Mode
Actions
base/
-
0755
rm
detail/
-
0755
rm
generation/
-
0755
rm
adams_bashforth.hpp
15264
0644
edit
dl
rm
adams_bashforth_moulton.hpp
12015
0644
edit
dl
rm
adams_moulton.hpp
6112
0644
edit
dl
rm
adaptive_adams_bashforth_moulton.hpp
8311
0644
edit
dl
rm
bulirsch_stoer.hpp
26189
0644
edit
dl
rm
bulirsch_stoer_dense_out.hpp
33859
0644
edit
dl
rm
controlled_adams_bashforth_moulton.hpp
10080
0644
edit
dl
rm
controlled_runge_kutta.hpp
38301
0644
edit
dl
rm
controlled_step_result.hpp
1092
0644
edit
dl
rm
dense_output_runge_kutta.hpp
14590
0644
edit
dl
rm
euler.hpp
6587
0644
edit
dl
rm
explicit_error_generic_rk.hpp
10708
0644
edit
dl
rm
explicit_generic_rk.hpp
8491
0644
edit
dl
rm
extrapolation_stepper.hpp
11155
0644
edit
dl
rm
generation.hpp
1477
0644
edit
dl
rm
implicit_euler.hpp
5236
0644
edit
dl
rm
modified_midpoint.hpp
10566
0644
edit
dl
rm
rosenbrock4.hpp
14602
0644
edit
dl
rm
rosenbrock4_controller.hpp
7290
0644
edit
dl
rm
rosenbrock4_dense_output.hpp
5595
0644
edit
dl
rm
runge_kutta4.hpp
5860
0644
edit
dl
rm
runge_kutta4_classic.hpp
9255
0644
edit
dl
rm
runge_kutta_cash_karp54.hpp
8676
0644
edit
dl
rm
runge_kutta_cash_karp54_classic.hpp
14318
0644
edit
dl
rm
runge_kutta_dopri5.hpp
21484
0644
edit
dl
rm
runge_kutta_fehlberg78.hpp
15005
0644
edit
dl
rm
stepper_categories.hpp
2162
0644
edit
dl
rm
symplectic_euler.hpp
3937
0644
edit
dl
rm
symplectic_rkn_sb3a_m4_mclachlan.hpp
5120
0644
edit
dl
rm
symplectic_rkn_sb3a_mclachlan.hpp
5389
0644
edit
dl
rm
velocity_verlet.hpp
13544
0644
edit
dl
rm
Edit:
/usr/include/boost/numeric/odeint/stepper/symplectic_euler.hpp
(3937B)
/* [auto_generated] boost/numeric/odeint/stepper/symplectic_euler.hpp [begin_description] Implementation of the symplectic Euler for separable Hamiltonian systems. [end_description] Copyright 2011-2013 Karsten Ahnert Copyright 2011-2013 Mario Mulansky 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_SYMPLECTIC_EULER_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_STEPPER_SYMPLECTIC_EULER_HPP_INCLUDED #include <boost/numeric/odeint/stepper/base/symplectic_rkn_stepper_base.hpp> #include <boost/numeric/odeint/algebra/range_algebra.hpp> #include <boost/numeric/odeint/algebra/default_operations.hpp> #include <boost/numeric/odeint/algebra/algebra_dispatcher.hpp> #include <boost/numeric/odeint/algebra/operations_dispatcher.hpp> #include <boost/array.hpp> namespace boost { namespace numeric { namespace odeint { #ifndef DOXYGEN_SKIP namespace detail { namespace symplectic_euler_coef { template< class Value > struct coef_a_type : public boost::array< Value , 1 > { coef_a_type( void ) { (*this)[0] = static_cast< Value >( 1 ); } }; template< class Value > struct coef_b_type : public boost::array< Value , 1 > { coef_b_type( void ) { (*this)[0] = static_cast< Value >( 1 ); } }; } // namespace symplectic_euler_coef } // namespace detail #endif template< class Coor , class Momentum = Coor , class Value = double , class CoorDeriv = Coor , class MomentumDeriv = Coor , class Time = Value , class Algebra = typename algebra_dispatcher< Coor >::algebra_type , class Operations = typename operations_dispatcher< Coor >::operations_type , class Resizer = initially_resizer > #ifndef DOXYGEN_SKIP class symplectic_euler : public symplectic_nystroem_stepper_base < 1 , 1 , Coor , Momentum , Value , CoorDeriv , MomentumDeriv , Time , Algebra , Operations , Resizer > #else class symplectic_euler : public symplectic_nystroem_stepper_base #endif { public: #ifndef DOXYGEN_SKIP typedef symplectic_nystroem_stepper_base< 1 , 1 , Coor , Momentum , Value , CoorDeriv , MomentumDeriv , Time , Algebra , Operations , Resizer > stepper_base_type; #endif typedef typename stepper_base_type::algebra_type algebra_type; typedef typename stepper_base_type::value_type value_type; symplectic_euler( const algebra_type &algebra = algebra_type() ) : stepper_base_type( detail::symplectic_euler_coef::coef_a_type< value_type >() , detail::symplectic_euler_coef::coef_b_type< value_type >() , algebra ) { } }; /*************** DOXYGEN ***************/ /** * \class symplectic_euler * \brief Implementation of the symplectic Euler method. * * The method is of first order and has one stage. It is described HERE. * * \tparam Order The order of the stepper. * \tparam Coor The type representing the coordinates q. * \tparam Momentum The type representing the coordinates p. * \tparam Value The basic value type. Should be something like float, double or a high-precision type. * \tparam CoorDeriv The type representing the time derivative of the coordinate dq/dt. * \tparam MomemtnumDeriv The type representing the time derivative of the momentum dp/dt. * \tparam Time The type representing the time t. * \tparam Algebra The algebra. * \tparam Operations The operations. * \tparam Resizer The resizer policy. */ /** * \fn symplectic_euler::symplectic_euler( const algebra_type &algebra ) * \brief Constructs the symplectic_euler. 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. */ } // namespace odeint } // namespace numeric } // namespace boost #endif // BOOST_NUMERIC_ODEINT_STEPPER_SYMPLECTIC_EULER_HPP_INCLUDED
Save
cmd:
run