Skip to content

Commit f23f83c

Browse files
committed
Add performance tip
1 parent 8547c19 commit f23f83c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/simplegmres.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ specialized dispatches.
1919
!!! warning
2020
2121
Most users should be using the `KrylovJL_GMRES` solver instead of this implementation.
22+
23+
!!! tip
24+
25+
We can automatically detect if the matrix is a Block Diagonal Matrix with Uniformly
26+
Sized Square Blocks. If this is the case, then we can use a specialized dispatch.
27+
However, on most modern systems performing a single matrix-vector multiplication is
28+
faster than performing multiple smaller matrix-vector multiplications (as in the case
29+
of Block Diagonal Matrix). We recommend making the matrix dense (if size permits) and
30+
specifying the `blocksize` argument.
2231
"""
2332
struct SimpleGMRES{UBD} <: AbstractKrylovSubspaceMethod
2433
restart::Int

0 commit comments

Comments
 (0)