Commit 09270c7
committed
TVdP tree node type (#39)
Replace 4 parallel integer arrays (info, up, left, right) with a single
fitpack_tree_node derived type for the triply-linked binary tree used by
the Theil-Van de Panne convexity-constrained spline fitting procedure.
- Add fitpack_tree_node type with 4 integer fields
- Refactor fpcosp: tree is now a local automatic array (4 fewer arguments)
- Refactor fpadno, fpdeno, fpfrno, fpseno to take tree(maxtr)
- Update callers cocosp and fpcoco: remove tree workspace from iwrk
- Reduce iwrk requirement by 4*maxtr integers1 parent 0890bb1 commit 09270c7
File tree
2 files changed
+104
-109
lines changed- docs/refactoring
- src
2 files changed
+104
-109
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 80 | + | |
86 | 81 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| 92 | + | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
0 commit comments