expand_ivp_arrays
Expands the arrays storing the IVP solution.
Back to IVP Solver Toolbox Contents.
Contents
Syntax
[t_new,y_new] = expand_ivp_arrays(t,y)
Description
[t_new,y_new] = expand_ivp_arrays(t,y) expands the arrays storing the IVP solution.
Input/Output Parameters
Variable | Symbol | Description | Format | |
Input | t | time vector | (N+1)×1 double |
|
y | solution matrix | p×(N+1) double |
||
Output | t_new | expanded time vector | 2(N+1)×1 double |
|
y_new | expanded solution matrix | p×2(N+1) double |
Note
- This function is ussed to preallocate more space for the solution arrays (i.e. the time vector and the solution matrix) once they become full.