Skip to content

Commit 72675bc

Browse files
Update docs/src/tutorials/sde_example.md
1 parent 0bf17df commit 72675bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/tutorials/sde_example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function g(du, u, p, t)
275275
end
276276
277277
# Make `g!` use the sparse matrix
278-
prob = SDEProblem(f, g, ones(2), (0.0, 1.0), noise_rate_prototype = A)
278+
prob = SDEProblem(f!, g!, ones(2), (0.0, 1.0), noise_rate_prototype = A)
279279
```
280280

281281
and now `g!(u,p,t)` writes into a sparse matrix, and `g!(u,p,t)*dW` is sparse matrix

0 commit comments

Comments
 (0)