Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / numeric / odeint / doc / html / boost / numeric / odeint / integrat_idm45853741138032.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template integrate_n_steps</title>
5 <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Numeric.Odeint">
8 <link rel="up" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html" title="Header &lt;boost/numeric/odeint/integrate/integrate_n_steps.hpp&gt;">
9 <link rel="prev" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html" title="Header &lt;boost/numeric/odeint/integrate/integrate_n_steps.hpp&gt;">
10 <link rel="next" href="../../../header/boost/numeric/odeint/integrate/integrate_times_hpp.html" title="Header &lt;boost/numeric/odeint/integrate/integrate_times.hpp&gt;">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../logo.jpg"></td>
15 <td align="center"><a href="../../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../header/boost/numeric/odeint/integrate/integrate_times_hpp.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.numeric.odeint.integrat_idm45853741138032"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Function template integrate_n_steps</span></h2>
29 <p>boost::numeric::odeint::integrate_n_steps &#8212; The same function as above, but without checker. </p>
30 </div>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html" title="Header &lt;boost/numeric/odeint/integrate/integrate_n_steps.hpp&gt;">boost/numeric/odeint/integrate/integrate_n_steps.hpp</a>&gt;
33
34 </span>
35 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Stepper<span class="special">,</span> <span class="keyword">typename</span> System<span class="special">,</span> <span class="keyword">typename</span> State<span class="special">,</span> <span class="keyword">typename</span> Time<span class="special">,</span> 
36          <span class="keyword">typename</span> Observer<span class="special">&gt;</span> 
37   <span class="identifier">Time</span> <span class="identifier">integrate_n_steps</span><span class="special">(</span><span class="identifier">Stepper</span> stepper<span class="special">,</span> <span class="identifier">System</span> system<span class="special">,</span> <span class="identifier">State</span> <span class="special">&amp;</span> start_state<span class="special">,</span> 
38                          <span class="identifier">Time</span> start_time<span class="special">,</span> <span class="identifier">Time</span> dt<span class="special">,</span> <span class="identifier">size_t</span> num_of_steps<span class="special">,</span> 
39                          <span class="identifier">Observer</span> observer<span class="special">)</span><span class="special">;</span></pre></div>
40 <div class="refsect1">
41 <a name="idm45221369483264"></a><h2>Description</h2>
42 <p>Integrates the ODE with constant step size.</p>
43 <p>This function is similar to integrate_const. The observer is called at equidistant time intervals t0 + n*dt. If the Stepper is a normal stepper without step size control, dt is also used for the numerical scheme. If a ControlledStepper is provided, the algorithm might reduce the step size to meet the error bounds, but it is ensured that the observer is always called at equidistant time points t0 + n*dt. If a DenseOutputStepper is used, the step size also may vary and the dense output is used to call the observer at equidistant time points. The final integration time is always t0 + num_of_steps*dt. If a <code class="computeroutput"><a class="link" href="max_step_checker.html" title="Class max_step_checker">max_step_checker</a></code> is provided as StepOverflowChecker, a no_progress_errror is thrown if too many steps (default: 500) are performed without progress, i.e. in between observer calls. If no checker is provided, no such overflow check is performed.</p>
44 <p>
45
46 </p>
47 <div class="variablelist"><table border="0" class="variablelist compact">
48 <colgroup>
49 <col align="left" valign="top">
50 <col>
51 </colgroup>
52 <tbody>
53 <tr>
54 <td><p><span class="term">Parameters:</span></p></td>
55 <td><div class="variablelist"><table border="0" class="variablelist compact">
56 <colgroup>
57 <col align="left" valign="top">
58 <col>
59 </colgroup>
60 <tbody>
61 <tr>
62 <td><p><span class="term"><code class="computeroutput">dt</code></span></p></td>
63 <td><p>The time step between observer calls, <span class="emphasis"><em>not</em></span> necessarily the time step of the integration. </p></td>
64 </tr>
65 <tr>
66 <td><p><span class="term"><code class="computeroutput">num_of_steps</code></span></p></td>
67 <td><p>Number of steps to be performed </p></td>
68 </tr>
69 <tr>
70 <td><p><span class="term"><code class="computeroutput">observer</code></span></p></td>
71 <td><p>Function/Functor called at equidistant time intervals. </p></td>
72 </tr>
73 <tr>
74 <td><p><span class="term"><code class="computeroutput">start_state</code></span></p></td>
75 <td><p>The initial condition x0. </p></td>
76 </tr>
77 <tr>
78 <td><p><span class="term"><code class="computeroutput">start_time</code></span></p></td>
79 <td><p>The initial time t0. </p></td>
80 </tr>
81 <tr>
82 <td><p><span class="term"><code class="computeroutput">stepper</code></span></p></td>
83 <td><p>The stepper to be used for numerical integration. </p></td>
84 </tr>
85 <tr>
86 <td><p><span class="term"><code class="computeroutput">system</code></span></p></td>
87 <td><p>Function/Functor defining the rhs of the ODE. </p></td>
88 </tr>
89 </tbody>
90 </table></div></td>
91 </tr>
92 <tr>
93 <td><p><span class="term">Returns:</span></p></td>
94 <td><p>The number of steps performed. </p></td>
95 </tr>
96 </tbody>
97 </table></div>
98 </div>
99 </div>
100 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
101 <td align="left"></td>
102 <td align="right"><div class="copyright-footer">Copyright &#169; 2009-2015 Karsten Ahnert and Mario Mulansky<p>
103         Distributed under the Boost Software License, Version 1.0. (See accompanying
104         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
105       </p>
106 </div></td>
107 </tr></table>
108 <hr>
109 <div class="spirit-nav">
110 <a accesskey="p" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/integrate/integrate_n_steps_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../header/boost/numeric/odeint/integrate/integrate_times_hpp.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
111 </div>
112 </body>
113 </html>