Commit b7b9d3f
Remove unnecessary @generated functions for isinplace checks
SciMLBase.isinplace extracts a type parameter and returns a compile-time
constant (true/false). The compiler constant-folds it, so @generated
functions are unnecessary for eliminating dead branches. Regular functions
with if SciMLBase.isinplace(prob) infer identically.
Reverted: incompatible_backend_and_problem, evaluate_f!!, evaluate_f,
should_cache_fx, and prepare_jacobian back to regular functions.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e94e86c commit b7b9d3f
File tree
3 files changed
+31
-61
lines changed- lib
- NonlinearSolveBase/src
- SimpleNonlinearSolve/src
3 files changed
+31
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
124 | 114 | | |
125 | 115 | | |
126 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
188 | 181 | | |
| 182 | + | |
189 | 183 | | |
190 | 184 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
200 | 191 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 192 | + | |
204 | 193 | | |
205 | 194 | | |
206 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
110 | 104 | | |
111 | | - | |
| 105 | + | |
112 | 106 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
120 | 111 | | |
121 | | - | |
| 112 | + | |
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
| |||
0 commit comments