|
| 1 | +# `shortestInfinitePath.m` |
| 2 | + |
| 3 | +Chooses a suitable sequence of steepest descent and straight line contours, which correspond to a deformation of the original integration contour from $a$ to $b$. This is done by representing the key topological properties of known quantities as a graph, and then solving a shortest |
| 4 | + path problem. |
| 5 | + |
| 6 | +Specifically, for this graph: |
| 7 | +balls, exits, entrances, endpoints and valleys are interpreted as nodes. Steepest descent contours (finite or infinite), and straight line contours connecting points inside balls, are represented as edges. |
| 8 | + The approach in this code is to create multiple adjacency matrices corresponding to the connections between different types of points (or |
| 9 | + valleys). These adjacency matrices are then combined, and we keep track |
| 10 | + of the different meanings of the different indices. This adjacency matrix |
| 11 | + is used to solve the shortest path problem. |
| 12 | + |
| 13 | + For more information, see {cite:p}`PFpaper`. |
| 14 | + |
| 15 | +```matlab |
| 16 | +[Q, graphData] = shortestInfinitePath(a, b, contours, balls, valleys, params) |
| 17 | +``` |
| 18 | + |
| 19 | +## Inputs |
| 20 | + |
| 21 | +* `a` and `b` : The enepoindts of the original contour. |
| 22 | +* `contours` : An array of type [ContourSD.m](ContourSD.md) |
| 23 | +* `balls` : An array of type [Ball.m](Ball.md) |
| 24 | +* `valleys` : An array of valleys. |
| 25 | +* `params` : A struct of approximation parameters. |
| 26 | + |
| 27 | +## Outputs |
| 28 | + |
| 29 | +* `Q` : Struct of quadrature ingredients, which contains all of the information about the chosen path deformation. From this, quadrature points are subsequently constructed. |
| 30 | +* `graphData` : Simplified struct, used for plotting,. |
0 commit comments