We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3704f5 commit f99cca7Copy full SHA for f99cca7
docs/src/semilinear/Linear.md
@@ -100,14 +100,14 @@ you will need to install some of the other libraries listed in the navigation ba
100
101
```julia
102
using OrdinaryDiffEqLinear, SciMLOperators
103
-function update_func(A, u, p, t)
+function update_func!(A, u, p, t)
104
A[1, 1] = 0
105
A[2, 1] = sin(u[1])
106
A[1, 2] = -1
107
A[2, 2] = 0
108
end
109
A0 = ones(2, 2)
110
-A = MatrixOperator(A0, update_func = update_func)
+A = MatrixOperator(A0, update_func! = update_func!)
111
u0 = ones(2)
112
tspan = (0.0, 30.0)
113
prob = ODEProblem(A, u0, tspan)
0 commit comments