Skip to content

Commit

Permalink
Update index.md to add using LinearAlgebra to import I
Browse files Browse the repository at this point in the history
The first copy-pastable code snippet doesn't work without `using LinearAlgebra` to import `I` for adding ones to the diagonal.
  • Loading branch information
jwscook committed Apr 16, 2024
1 parent af39ff9 commit b6f1734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/index.md
Expand Up @@ -20,7 +20,7 @@ to initialize MPI before attempting to create a `Mumps` object. A simple
session is as follows:

```julia
using MUMPS, MPI, SparseArrays
using MUMPS, MPI, SparseArrays, LinearAlgebra
MPI.Init()
A = sprand(10, 10, 0.2) + I
rhs = rand(10)
Expand Down

0 comments on commit b6f1734

Please sign in to comment.