Home
last modified time | relevance | path

Searched refs:dxdt (Results 1 – 25 of 120) sorted by relevance

12345

/third_party/boost/libs/numeric/odeint/test/
Ddummy_odes.hpp34 void operator()( const State &x , Deriv &dxdt , const Time t ) const in operator ()()
36 dxdt[0] = 1.0; in operator ()()
43 void operator()( const State &x , Deriv &dxdt , const Time t ) const in operator ()()
45 dxdt = 1.0; in operator ()()
52 void operator()( const State &x , Deriv &dxdt , const Time t ) const in operator ()()
54 boost::fusion::at_c< 0 >( dxdt ) = boost::fusion::at_c< 0 >( x ) / Time( 1.0 ); in operator ()()
61 void operator()( const State& x , Deriv& dxdt , const Time& t ) const in operator ()()
66 dxdt[0] = sigma * ( x[1] - x[0] ); in operator ()()
67 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in operator ()()
68 dxdt[2] = -b * x[2] + x[0] * x[1]; in operator ()()
[all …]
Dstepper_with_ranges.cpp67 typename boost::range_iterator< Deriv >::type dxdt = boost::begin( dxdt_ ); in operator ()() local
69 dxdt[0] = x[0]; in operator ()()
70 dxdt[1] = 2.0; in operator ()()
71 dxdt[2] = 3.0; in operator ()()
78 typename boost::range_iterator< Deriv >::type dxdt = boost::begin( dxdt_ ); in operator ()() local
80 dxdt[0] = x[0]; in operator ()()
81 dxdt[1] = 2.0; in operator ()()
82 dxdt[2] = 3.0; in operator ()()
94 typename boost::range_iterator< Deriv >::type dxdt = boost::begin( dxdt_ ); in operator ()() local
96 dxdt[0] = 1.0; in operator ()()
[all …]
Dstepper_with_units.cpp68 void oscillator( const state_type &x , deriv_type &dxdt , time_type t ) in oscillator() argument
71 fusion::at_c< 0 >( dxdt ) = fusion::at_c< 1 >( x ); in oscillator()
72 fusion::at_c< 1 >( dxdt ) = - omega * omega * fusion::at_c< 0 >( x ); in oscillator()
98 deriv_type dxdt; in check_stepper() local
99 oscillator( x , dxdt , t ); in check_stepper()
100 stepper.do_step( oscillator , x , dxdt , t , dt ); in check_stepper()
103 oscillator( x , dxdt , t ); in check_stepper()
104 stepper.do_step( oscillator , x , dxdt , t , x , dt ); in check_stepper()
130 deriv_type dxdt; in check_fsal_stepper() local
131 oscillator( x , dxdt , t ); in check_fsal_stepper()
[all …]
Dbulirsch_stoer.cpp51 void operator()( const State &x , Deriv &dxdt , double t ) const in operator ()()
53 dxdt[0] = sigma * ( x[1] - x[0] ); in operator ()()
54 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in operator ()()
55 dxdt[2] = -b * x[2] + x[0] * x[1]; in operator ()()
62 void operator()( const State &x , Deriv &dxdt , double t ) const in operator ()()
64 dxdt[0] = 1.0; in operator ()()
65 dxdt[1] = 1.0; in operator ()()
66 dxdt[2] = 1.0; in operator ()()
73 void operator()( const State &x , Deriv &dxdt , double t ) const in operator ()()
75 dxdt[0] = sin( x[0] ); in operator ()()
[all …]
/third_party/boost/boost/numeric/odeint/stepper/detail/
Dadams_moulton_call_algebra.hpp35 …void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const DerivIn &dxdt , cons… in operator ()()
38 …algebra.for_each3( out , in , dxdt , typename Operations::template scale_sum2< value_type , Time >… in operator ()()
47 …void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const DerivIn &dxdt , cons… in operator ()()
50 algebra.for_each4( out , in , dxdt , steps[0].m_v , in operator ()()
60 …void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const DerivIn &dxdt , cons… in operator ()()
63 algebra.for_each5( out , in , dxdt , steps[0].m_v , steps[1].m_v , in operator ()()
73 …void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const DerivIn &dxdt , cons… in operator ()()
76 algebra.for_each6( out , in , dxdt , steps[0].m_v , steps[1].m_v , steps[2].m_v , in operator ()()
87 …void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const DerivIn &dxdt , cons… in operator ()()
90 … algebra.for_each7( out , in , dxdt , steps[0].m_v , steps[1].m_v , steps[2].m_v , steps[3].m_v , in operator ()()
[all …]
/third_party/boost/libs/numeric/odeint/examples/mtl/
Dimplicit_euler_mtl.cpp40 void operator()( const vec_mtl4 &x , vec_mtl4 &dxdt , double t ) in operator ()()
44 dxdt[ 0 ] = -0.06*x[0]; in operator ()()
48 dxdt[ i ] = 4.2*x[i-1]-2.2*x[i]*x[i]; in operator ()()
76 void operator()( const vec_ublas &x , vec_ublas &dxdt , double t ) in operator ()()
80 dxdt[ 0 ] = -0.06*x[0]; in operator ()()
84 dxdt[ i ] = 4.2*x[i-1]-2.2*x[i]*x[i]; in operator ()()
111 void operator()( const vec_mtl4 &x , vec_mtl4 &dxdt , double t ) in operator ()()
118 dxdt[ i ] = -0.5*x[i]; in operator ()()
119 dxdt[i+1]= +25*x[i+1]*x[i+2]-740*x[i+3]*x[i+3]+4.2e-2*x[i]; in operator ()()
120 dxdt[i+2]= +25*x[i]*x[i]-740*x[i+3]*x[i+3]; in operator ()()
[all …]
/third_party/boost/libs/numeric/odeint/examples/thrust/
Dlorenz_parameters.cu70 void operator()( const State &x , Deriv &dxdt , value_type t ) const in operator ()()
78 boost::begin( dxdt ) , in operator ()()
79 boost::begin( dxdt ) + m_N , in operator ()()
80 boost::begin( dxdt ) + 2 * m_N ) ) , in operator ()()
86 boost::begin( dxdt ) + m_N , in operator ()()
87 boost::begin( dxdt ) + 2 * m_N , in operator ()()
88 boost::begin( dxdt ) + 3 * m_N ) ) , in operator ()()
124 void operator()( const State &x , Deriv &dxdt , value_type t ) const in operator ()()
137 boost::begin( dxdt ) , in operator ()()
138 boost::begin( dxdt ) + m_N , in operator ()()
[all …]
/third_party/boost/libs/numeric/odeint/examples/
Dharmonic_oscillator.cpp26 void harmonic_oscillator( const state_type &x , state_type &dxdt , const double /* t */ ) in harmonic_oscillator() argument
28 dxdt[0] = x[1]; in harmonic_oscillator()
29 dxdt[1] = -x[0] - gam*x[1]; in harmonic_oscillator()
46 void operator() ( const state_type &x , state_type &dxdt , const double /* t */ ) in operator ()() argument
48 dxdt[0] = x[1]; in operator ()()
49 dxdt[1] = -x[0] - m_gam*x[1]; in operator ()()
192 integrate_const( stepper , []( const state_type &x , state_type &dxdt , double t ) { in main() argument
193 dxdt[0] = x[1]; dxdt[1] = -x[0] - gam*x[1]; } in main()
Dchaotic_system.cpp39 typename boost::range_iterator< Deriv >::type dxdt = boost::begin( dxdt_ ); in operator ()() local
41 dxdt[0] = sigma * ( x[1] - x[0] ); in operator ()()
42 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in operator ()()
43 dxdt[2] = -b * x[2] + x[0] * x[1]; in operator ()()
58 void lorenz_with_lyap( const state_type &x , state_type &dxdt , double t ) in lorenz_with_lyap() argument
60 lorenz()( x , dxdt , t ); in lorenz_with_lyap()
65 double *dpert = dxdt.begin() + 3 + l * 3; in lorenz_with_lyap()
Dbind_member_functions.cpp37 void operator()( const State &x , Deriv &dxdt , Time t ) in operator ()() argument
39 (m_obj.*m_mem)( x , dxdt , t ); in operator ()()
79 void ode( const state_type &x , state_type &dxdt , double t ) const in ode()
81 dxdt[0] = 10.0 * ( x[1] - x[0] ); in ode()
82 dxdt[1] = 28.0 * x[0] - x[1] - x[0] * x[2]; in ode()
83 dxdt[2] = -8.0 / 3.0 * x[2] + x[0] * x[1]; in ode()
Dlorenz.cpp15 void lorenz( const state_type &x , state_type &dxdt , double t ) in lorenz() argument
17 dxdt[0] = sigma * ( x[1] - x[0] ); in lorenz()
18 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in lorenz()
19 dxdt[2] = -b * x[2] + x[0] * x[1]; in lorenz()
Dbind_member_functions_cpp11.cpp31 void ode( const state_type &x , state_type &dxdt , double t ) const in ode()
37 dxdt[0] = sigma * ( x[1] - x[0] ); in ode()
38 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in ode()
39 dxdt[2] = -b * x[2] + x[0] * x[1]; in ode()
/third_party/boost/boost/math/interpolators/
Dvector_barycentric_rational.hpp39 void prime(Point& dxdt, Real t) const { in prime() argument
41 m_imp->eval_with_prime(x, dxdt, t); in prime()
50 void eval_with_prime(Point& x, Point& dxdt, Real t) const { in eval_with_prime() argument
51 m_imp->eval_with_prime(x, dxdt, t); in eval_with_prime()
57 Point dxdt; in eval_with_prime() local
58 m_imp->eval_with_prime(x, dxdt, t); in eval_with_prime()
59 return {x, dxdt}; in eval_with_prime()
/third_party/boost/boost/numeric/odeint/stepper/
Dextrapolation_stepper.hpp141 void do_step_impl( System system, const StateIn &in, const DerivIn &dxdt, in do_step_impl() argument
146 do_step_impl( system, in, dxdt, t, out, dt ); in do_step_impl()
157 void do_step_impl_io( System system, StateInOut &inout, const DerivIn &dxdt, in do_step_impl_io() argument
161 do_step_impl_io( system, inout, dxdt, t, dt ); in do_step_impl_io()
172 void do_step_impl( System system, const StateIn &in, const DerivIn &dxdt, in do_step_impl() argument
180 m_midpoint.do_step( system, in, dxdt, t, out, dt ); in do_step_impl()
184 m_midpoint.do_step( system, in, dxdt, t, m_table[k - 1].m_v, dt ); in do_step_impl()
190 void do_step_impl_io( System system, StateInOut &inout, const DerivIn &dxdt, in do_step_impl_io() argument
198 do_step_impl( system, inout, dxdt, t, m_xout.m_v, dt ); in do_step_impl_io()
203 void do_step_dxdt_impl( System system, StateInOut &x, const DerivIn &dxdt, in do_step_dxdt_impl() argument
[all …]
Drunge_kutta_cash_karp54_classic.hpp93 …void do_step_impl( System system , const StateIn &in , const DerivIn &dxdt , time_type t , StateOu… in do_step_impl() argument
106 do_step_impl( system , in , dxdt , t , out , dt ); in do_step_impl()
109 … stepper_base_type::m_algebra.for_each6( xerr , dxdt , m_k3.m_v , m_k4.m_v , m_k5.m_v , m_k6.m_v , in do_step_impl()
117 …void do_step_impl( System system , const StateIn &in , const DerivIn &dxdt , time_type t , StateOu… in do_step_impl() argument
151 stepper_base_type::m_algebra.for_each3( m_x_tmp.m_v , in , dxdt , in do_step_impl()
156 stepper_base_type::m_algebra.for_each4( m_x_tmp.m_v , in , dxdt , m_k2.m_v , in do_step_impl()
161 stepper_base_type::m_algebra.for_each5( m_x_tmp.m_v , in , dxdt , m_k2.m_v , m_k3.m_v , in do_step_impl()
165 … stepper_base_type::m_algebra.for_each6( m_x_tmp.m_v , in , dxdt , m_k2.m_v , m_k3.m_v , m_k4.m_v , in do_step_impl()
169 …stepper_base_type::m_algebra.for_each7( m_x_tmp.m_v , in , dxdt , m_k2.m_v , m_k3.m_v , m_k4.m_v ,… in do_step_impl()
173 stepper_base_type::m_algebra.for_each6( out , in , dxdt , m_k3.m_v , m_k4.m_v , m_k6.m_v , in do_step_impl()
/third_party/boost/boost/numeric/odeint/stepper/base/
Dexplicit_error_stepper_base.hpp148 do_step( System system , StateInOut &x , const DerivIn &dxdt , time_type t , time_type dt ) in do_step() argument
150 this->stepper().do_step_impl( system , x , dxdt , t , x , dt ); in do_step()
162 void do_step_dxdt_impl( System system, StateInOut &x, const DerivIn &dxdt, in do_step_dxdt_impl() argument
165 this->stepper().do_step_impl( system , x , dxdt , t , x , dt ); in do_step_dxdt_impl()
196 …do_step( System system , const StateIn &in , const DerivIn &dxdt , time_type t , StateOut &out , t… in do_step() argument
198 this->stepper().do_step_impl( system , in , dxdt , t , out , dt ); in do_step()
210 const DerivIn &dxdt, time_type t, StateOut &out, in do_step_dxdt_impl() argument
213 this->stepper().do_step_impl( system , in , dxdt , t , out , dt ); in do_step_dxdt_impl()
246 …do_step( System system , StateInOut &x , const DerivIn &dxdt , time_type t , time_type dt , Err &x… in do_step() argument
248 this->stepper().do_step_impl( system , x , dxdt , t , x , dt , xerr ); in do_step()
[all …]
Dexplicit_stepper_base.hpp135 do_step( System system , StateInOut &x , const DerivIn &dxdt , time_type t , time_type dt ) in do_step() argument
137 this->stepper().do_step_impl( system , x , dxdt , t , x , dt ); in do_step()
149 void do_step_dxdt_impl( System system, StateInOut &x, const DerivIn &dxdt, in do_step_dxdt_impl() argument
152 this->stepper().do_step_impl( system , x , dxdt , t , x , dt ); in do_step_dxdt_impl()
177 …void do_step( System system , const StateIn &in , const DerivIn &dxdt , time_type t , StateOut &ou… in do_step() argument
179 this->stepper().do_step_impl( system , in , dxdt , t , out , dt ); in do_step()
192 const DerivIn &dxdt, time_type t, StateOut &out, in do_step_dxdt_impl() argument
195 this->stepper().do_step_impl( system , in , dxdt , t , out , dt ); in do_step_dxdt_impl()
/third_party/boost/libs/numeric/odeint/examples/openmp/
Dphase_chain_omp_state.cpp37 void operator()( const state_type &x , state_type &dxdt , double /* t */ ) const in operator ()()
46 dxdt[n][m] = coupling_func( x[n][m+1] - x[n][m] ) + in operator ()()
49 dxdt[n][0] = coupling_func( x[n][1] - x[n][0] ); in operator ()()
52 dxdt[n][0] += coupling_func( x[n-1].back() - x[n].front() ); in operator ()()
54 dxdt[n][M-1] = coupling_func( x[n][M-2] - x[n][M-1] ); in operator ()()
57 dxdt[n][M-1] += coupling_func( x[n+1].front() - x[n].back() ); in operator ()()
/third_party/boost/libs/numeric/odeint/performance/
Dlorenz.hpp21 void inline operator()( const state_type &x , state_type &dxdt , const double t ) const in operator ()()
26 dxdt[0] = sigma * ( x[1] - x[0] ); in operator ()()
27 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in operator ()()
28 dxdt[2] = x[0]*x[1] - b * x[2]; in operator ()()
/third_party/boost/libs/numeric/odeint/examples/mpi/
Dphase_chain.cpp38 void operator()( const state_type &x , state_type &dxdt , double /* t */ ) const in operator ()()
57 dxdt()[m] = coupling_func( x()[m+1] - x()[m] ) + in operator ()()
60 dxdt()[0] = coupling_func( x()[1] - x()[0] ); in operator ()()
64 dxdt()[0] += coupling_func( x_left - x().front() ); in operator ()()
66 dxdt()[M-1] = coupling_func( x()[M-2] - x()[M-1] ); in operator ()()
70 dxdt()[M-1] += coupling_func( x_right - x().back() ); in operator ()()
/third_party/boost/libs/numeric/odeint/examples/ublas/
Dlorenz_ublas.cpp18 void lorenz( const state_type &x , state_type &dxdt , const double t ) in lorenz() argument
24 dxdt[0] = sigma * ( x[1] - x[0] ); in lorenz()
25 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in lorenz()
26 dxdt[2] = -b * x[2] + x[0] * x[1]; in lorenz()
/third_party/boost/libs/numeric/odeint/test_external/gsl/
Dcheck_gsl.cpp30 void lorenz( const state_type x , state_type dxdt , double t ) in lorenz() argument
32 gsl_vector_set( dxdt , 0 , sigma * ( gsl_vector_get(x , 1 ) - gsl_vector_get( x , 0 ) ) ); in lorenz()
33 …gsl_vector_set( dxdt , 1 , R * gsl_vector_get( x , 0 ) - gsl_vector_get( x , 1 ) - gsl_vector_get(… in lorenz()
34 …gsl_vector_set( dxdt , 2 , gsl_vector_get( x , 0 ) * gsl_vector_get( x , 1 ) - b * gsl_vector_get(… in lorenz()
/third_party/boost/libs/numeric/odeint/examples/multiprecision/
Dcmp_precision.cpp28 void rhs_m( const mp_50 x , mp_50 &dxdt , const mp_50 t ) in rhs_m() argument
30 dxdt = mp_50(3)/(mp_50(2)*t*t) + x/(mp_50(2)*t); in rhs_m()
33 void rhs_d( const double x , double &dxdt , const double t ) in rhs_d() argument
35 dxdt = 3.0/(2.0*t*t) + x/(2.0*t); in rhs_d()
Dlorenz_mp.cpp33 void operator()( const state_type &x , state_type &dxdt , value_type t ) const in operator ()()
39 dxdt[0] = sigma * ( x[1] - x[0] ); in operator ()()
40 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in operator ()()
41 dxdt[2] = -b * x[2] + x[0] * x[1]; in operator ()()
/third_party/boost/libs/numeric/odeint/examples/gmpxx/
Dlorenz_gmpxx.cpp32 void operator()( const state_type &x , state_type &dxdt , value_type t ) const in operator ()()
38 dxdt[0] = sigma * ( x[1] - x[0] ); in operator ()()
39 dxdt[1] = R * x[0] - x[1] - x[0] * x[2]; in operator ()()
40 dxdt[2] = -b * x[2] + x[0] * x[1]; in operator ()()

12345