Skip to content

Commit 9c9dec8

Browse files
committed
Added additional solver dedicated to matrix-valued ODEs, minor fixes, updated documentation
1 parent 979ef83 commit 9c9dec8

File tree

621 files changed

+217
-470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+217
-470
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,20 @@ doc_IVP tech
3434
`[t,y] = solve_ivp(__,method,wb)`
3535

3636

37-
## Tools for Matrix-Valued IVPs
38-
`ivpIC_mat2vec`\
39-
`ivpsol_vec2mat`\
40-
`odefun_mat2vec`
37+
## Matrix-Valued IVP Solver Function
38+
39+
`[t,M] = solve_ivp_matrix(F,[t0,tf],M0,h)`\
40+
`[t,M] = solve_ivp_matrix(F,{t0,C},M0,h)`\
41+
`[t,M] = solve_ivp_matrix(__,p,method)`\
42+
`[t,M] = solve_ivp_matrix(__,p,method,wb)`
43+
44+
45+
## Utilities for IVP Solvers
46+
`expand_ivp_arrays`\
47+
`mat2vec_fun`\
48+
`mat2vec_IC`\
49+
`mat2vec_C`\
50+
`vec2mat_sol`
4151

4252

4353
## Explicit Runge-Kutta (Single-Step) Methods
Binary file not shown.

docs/AB2_doc.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868

6969

70-
</style></head><body><div class="content"><h1><tt>AB2</tt></h1><!--introduction--><p>Propagates the state vector forward one time step using the Adams-Bashforth 2nd-order method.</p><p><a href="index.html">Back to IVP Solver Toolbox Contents</a>.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Syntax</a></li><li><a href="#2">Description</a></li><li><a href="#3">Input/Output Parameters</a></li><li><a href="#4">Note</a></li><li><a href="#5">See also</a></li></ul></div><h2 id="1">Syntax</h2><pre class="language-matlab">F = AB2(f,t,F,h)
70+
</style></head><body><div class="content"><h1><tt>AB2</tt></h1><!--introduction--><p>Propagates the state vector forward one time step using the Adams-Bashforth 2nd-order method.</p><p><a href="index.html">Back to IVP Solver Toolbox Contents</a>.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Syntax</a></li><li><a href="#2">Description</a></li><li><a href="#3">Input/Output Parameters</a></li><li><a href="#4">See also</a></li></ul></div><h2 id="1">Syntax</h2><pre class="language-matlab">F = AB2(f,t,F,h)
7171
</pre><h2 id="2">Description</h2><p><tt>F = AB2(f,t,y,h)</tt> updates the <img src="AB2_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix, <tt>F</tt>, for the next sample time, given the <img src="AB2_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix at the current time <tt>t</tt>, the function <tt>f(t,y)</tt> defining the ODE <img src="AB2_doc_eq11546780198861005830.png" alt="$d\mathbf{y}/dt=\mathbf{f}(t,\mathbf{y})$" style="width:71px;height:11px;">, and the step size <tt>h</tt>.</p><h2 id="3">Input/Output Parameters</h2><p>
7272
<table border=1>
7373
<tr>
@@ -114,7 +114,7 @@
114114
<td style="text-align:center">p×3<BR>double</td>
115115
</tr>
116116
</table>
117-
</p><h2 id="4">Note</h2><div><ul><li><img src="AB2_doc_eq06235627993914477729.png" alt="$p=$" style="width:17px;height:8px;"> dimension of state vector (for the scalar case, <img src="AB2_doc_eq14406891124849479077.png" alt="$p=1$" style="width:25px;height:10px;">).</li></ul></div><h2 id="5">See also</h2><p><a href="AB3_doc.html"><tt>AB3</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
117+
</p><h2 id="4">See also</h2><p><a href="AB3_doc.html"><tt>AB3</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
118118
##### SOURCE BEGIN #####
119119
%% |AB2|
120120
% Propagates the state vector forward one time step using the
@@ -176,8 +176,6 @@
176176
% </tr>
177177
% </table>
178178
% </html>
179-
%% Note
180-
% * $p=$ dimension of state vector (for the scalar case, $p=1$).
181179
%% See also
182180
% <AB3_doc.html |AB3|> |
183181
% <AB4_doc.html |AB4|> |
0 Bytes
Loading
-642 Bytes
Binary file not shown.
0 Bytes
Loading
-854 Bytes
Binary file not shown.

docs/AB3_doc.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868

6969

70-
</style></head><body><div class="content"><h1><tt>AB3</tt></h1><!--introduction--><p>Propagates the state vector forward one time step using the Adams-Bashforth 3rd-order method.</p><p><a href="index.html">Back to IVP Solver Toolbox Contents</a>.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Syntax</a></li><li><a href="#2">Description</a></li><li><a href="#3">Input/Output Parameters</a></li><li><a href="#4">Note</a></li><li><a href="#5">See also</a></li></ul></div><h2 id="1">Syntax</h2><pre class="language-matlab">F = AB3(f,t,F,h)
70+
</style></head><body><div class="content"><h1><tt>AB3</tt></h1><!--introduction--><p>Propagates the state vector forward one time step using the Adams-Bashforth 3rd-order method.</p><p><a href="index.html">Back to IVP Solver Toolbox Contents</a>.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Syntax</a></li><li><a href="#2">Description</a></li><li><a href="#3">Input/Output Parameters</a></li><li><a href="#4">See also</a></li></ul></div><h2 id="1">Syntax</h2><pre class="language-matlab">F = AB3(f,t,F,h)
7171
</pre><h2 id="2">Description</h2><p><tt>F = AB3(f,t,y,h)</tt> updates the <img src="AB3_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix, <tt>F</tt>, for the next sample time, given the <img src="AB3_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix at the current time <tt>t</tt>, the function <tt>f(t,y)</tt> defining the ODE <img src="AB3_doc_eq11546780198861005830.png" alt="$d\mathbf{y}/dt=\mathbf{f}(t,\mathbf{y})$" style="width:71px;height:11px;">, and the step size <tt>h</tt>.</p><h2 id="3">Input/Output Parameters</h2><p>
7272
<table border=1>
7373
<tr>
@@ -114,7 +114,7 @@
114114
<td style="text-align:center">p×4<BR>double</td>
115115
</tr>
116116
</table>
117-
</p><h2 id="4">Note</h2><div><ul><li><img src="AB3_doc_eq06235627993914477729.png" alt="$p=$" style="width:17px;height:8px;"> dimension of state vector (for the scalar case, <img src="AB3_doc_eq14406891124849479077.png" alt="$p=1$" style="width:25px;height:10px;">).</li></ul></div><h2 id="5">See also</h2><p><a href="AB2_doc.html"><tt>AB2</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
117+
</p><h2 id="4">See also</h2><p><a href="AB2_doc.html"><tt>AB2</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
118118
##### SOURCE BEGIN #####
119119
%% |AB3|
120120
% Propagates the state vector forward one time step using the
@@ -176,8 +176,6 @@
176176
% </tr>
177177
% </table>
178178
% </html>
179-
%% Note
180-
% * $p=$ dimension of state vector (for the scalar case, $p=1$).
181179
%% See also
182180
% <AB2_doc.html |AB2|> |
183181
% <AB4_doc.html |AB4|> |
0 Bytes
Loading
-642 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)