Skip to content

Commit 0a67bab

Browse files
Update faster_ode_example.md
1 parent 43cf790 commit 0a67bab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/tutorials/faster_ode_example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ de = MTK.complete(MTK.modelingtoolkitize(prob))
316316
We can tell it to compute the Jacobian if we want to see the code:
317317

318318
```@example faster_ode2
319-
ModelingToolkit.generate_jacobian(de)[2] # Second is in-place
319+
MTK.generate_jacobian(de)[2] # Second is in-place
320320
```
321321

322322
Now let's use that to give the analytical solution Jacobian:
@@ -392,11 +392,11 @@ discretization of the Laplacian. The native code would be something along the
392392
lines of:
393393

394394
```@example faster_ode3
395-
import DifferentialEquations as DE, LinearAlgebra, BenchmarkTools as BT
395+
import DifferentialEquations as DE, LinearAlgebra as LA, BenchmarkTools as BT
396396
# Generate the constants
397397
p = (1.0, 1.0, 1.0, 10.0, 0.001, 100.0) # a,α,ubar,β,D1,D2
398398
N = 100
399-
Ax = Array(Tridiagonal([1.0 for i in 1:(N - 1)], [-2.0 for i in 1:N],
399+
Ax = Array(LA.Tridiagonal([1.0 for i in 1:(N - 1)], [-2.0 for i in 1:N],
400400
[1.0 for i in 1:(N - 1)]))
401401
Ay = copy(Ax)
402402
Ax[2, 1] = 2.0

0 commit comments

Comments
 (0)