Skip to content

Commit fa24572

Browse files
Update nonautonomous_linear_ode.md
1 parent 64ae112 commit fa24572

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/src/types/nonautonomous_linear_ode.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ function update_func(A, u, p, t)
3030
A[1, 2] = -sin(t)
3131
A[2, 2] = cos(t)
3232
end
33-
A = DiffEqArrayOperator(ones(2, 2), update_func = update_func)
33+
34+
using SciMLOperators
35+
A = MatrixOperator(ones(2, 2), update_func = update_func)
3436
prob = ODEProblem(A, ones(2), (10, 50.0))
3537
```
3638

@@ -47,9 +49,10 @@ function update_func(A, u, p, t)
4749
end
4850
```
4951

50-
has a state-dependent linear operator. Note that many other `AbstractDiffEqOperator`s
51-
can be used, and `DiffEqArrayOperator` is just one version that represents `A` via
52-
a matrix (other choices are matrix-free).
52+
has a state-dependent linear operator. Note that many other `AbstractSciMLOperator`s
53+
can be used, and `MatrixOperator` is just one version that represents `A` via
54+
a matrix (other choices are matrix-free). See the [SciMLOperators.jl](https://docs.sciml.ai/SciMLOperators/stable/)
55+
documentation for more information.
5356

5457
Note that if ``A`` is a constant, then it is sufficient to supply ``A`` directly without
5558
an `update_func`.

0 commit comments

Comments
 (0)