Commit 4f46756
Add a test for non-differentiable pointer params
When the user requests a derivative and doesn't include a non-const pointer parameter to independent parameters, we produce an error and refuse to generate such a derivative. This is done because we don't know how to generate the adjoint. There is, however, no issue if the parameter is marked as non-differentiable, as the adjoint is not needed anyway. This PR adds a test ensuring this works.
Fixes #1350.1 parent ffa3f5f commit 4f46756
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
260 | 266 | | |
261 | 267 | | |
262 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
263 | 275 | | |
0 commit comments