I think DiffEq checks whether the function has 3 or 4 input arguments. The former is non-mutating, the latter is mutating, by convention of DiffEq. I don’t think a general check on whether a function is mutating is possible in Julia (you should look into Rust ;-).
mauro3
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Function depending on in-place or not in-place function handles | 8 | 290 | November 29, 2024 | |
| In-place functions in definition of ODEProblem (DifferentialEquations) | 9 | 3912 | March 8, 2023 | |
| In place with multiple modified arguments | 2 | 451 | May 5, 2018 | |
| Calculus with in place functions | 12 | 809 | September 9, 2019 | |
| Why is the argument of vectorized in-place function is marked as not used? | 5 | 423 | October 24, 2023 |