Skip to content

Commit

Permalink
Merge branch 'main' of github.com:nmayhall-vt/BlockDavidson.jl into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nmayhall-vt committed Jun 10, 2023
2 parents f8bbea5 + b7306e3 commit bb012e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Simple code to solve for the eigenvectors/eigenvalues of a matrix or `LinearMap`
dav = Davidson(A)
e,v = eigs(dav)
```
to use the diagonal preconditioner specify as argument to eigs
```julia
e,v = eigs(dav, Adiag=diag(A))
```

### Matrix-free diagonalization
We can also diagonalize an implicit matrix by defining a function `matvec` that algorithmically implments the action of `A` onto a vector or set of vectors. We can also specify several settings, including providing an initial guess `v_guess`:
```julia
Expand Down

0 comments on commit bb012e5

Please sign in to comment.