Skip to content

Commit 258355e

Browse files
docs: update doc example to MTKv9
1 parent 728b89a commit 258355e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ sol2 = solve(prob, Tsit5())
168168
σ_ρ_getter(sol)
169169
```
170170

171-
To set the entire parameter vector at once, [`parameter_values`](@ref) can be used
172-
(note the usage of broadcasted assignment).
171+
To set the entire parameter vector at once, [`setp`](@ref) can be used
172+
(note that the order of symbols passed to `setp` must match the order of values in the array).
173173

174174
```@example Usage
175-
parameter_values(prob) .= [29.0, 11.0, 2.5]
175+
setp(prob, parameter_symbols(prob))(prob, [29.0, 11.0, 2.5])
176176
parameter_values(prob)
177177
```
178178

0 commit comments

Comments
 (0)