Skip to content

Commit 5426cdd

Browse files
Merge pull request #333 from SciML/docs
Improve a few docstrings
2 parents 74edf0b + 9c85e96 commit 5426cdd

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

src/extension_algs.jl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,28 @@ MKLPardisoIterate(; kwargs...) = PardisoJL(; solver_type = 1, kwargs...)
180180
end
181181
end
182182
else
183+
"""
184+
```julia
185+
PardisoJL(; nprocs::Union{Int, Nothing} = nothing,
186+
solver_type = nothing,
187+
matrix_type = nothing,
188+
iparm::Union{Vector{Tuple{Int, Int}}, Nothing} = nothing,
189+
dparm::Union{Vector{Tuple{Int, Int}}, Nothing} = nothing)
190+
```
191+
192+
A generic method using MKL Pardiso. Specifying `solver_type` is required.
193+
194+
!!! note
195+
196+
Using this solver requires adding the package Pardiso.jl, i.e. `using Pardiso`
197+
198+
## Keyword Arguments
199+
200+
For the definition of the keyword arguments, see the Pardiso.jl documentation.
201+
All values default to `nothing` and the solver internally determines the values
202+
given the input types, and these keyword arguments are only for overriding the
203+
default handling process. This should not be required by most users.
204+
"""
183205
Base.@kwdef struct PardisoJL <: LinearSolve.SciMLLinearSolveAlgorithm
184206
nprocs::Union{Int, Nothing} = nothing
185207
solver_type::Any = nothing

src/factorization.jl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ end
3030
3131
Julia's built in `lu`. Equivalent to calling `lu!(A)`
3232
33-
* On dense matrices, this uses the current BLAS implementation of the user's computer,
34-
which by default is OpenBLAS but will use MKL if the user does `using MKL` in their
35-
system.
36-
* On sparse matrices, this will use UMFPACK from SuiteSparse. Note that this will not
37-
cache the symbolic factorization.
38-
* On CuMatrix, it will use a CUDA-accelerated LU from CuSolver.
39-
* On BandedMatrix and BlockBandedMatrix, it will use a banded LU.
33+
* On dense matrices, this uses the current BLAS implementation of the user's computer,
34+
which by default is OpenBLAS but will use MKL if the user does `using MKL` in their
35+
system.
36+
* On sparse matrices, this will use UMFPACK from SuiteSparse. Note that this will not
37+
cache the symbolic factorization.
38+
* On CuMatrix, it will use a CUDA-accelerated LU from CuSolver.
39+
* On BandedMatrix and BlockBandedMatrix, it will use a banded LU.
4040
4141
## Positional Arguments
4242
@@ -136,12 +136,12 @@ end
136136
137137
Julia's built in `qr`. Equivalent to calling `qr!(A)`.
138138
139-
* On dense matrices, this uses the current BLAS implementation of the user's computer
140-
which by default is OpenBLAS but will use MKL if the user does `using MKL` in their
141-
system.
142-
* On sparse matrices, this will use SPQR from SuiteSparse
143-
* On CuMatrix, it will use a CUDA-accelerated QR from CuSolver.
144-
* On BandedMatrix and BlockBandedMatrix, it will use a banded QR.
139+
* On dense matrices, this uses the current BLAS implementation of the user's computer
140+
which by default is OpenBLAS but will use MKL if the user does `using MKL` in their
141+
system.
142+
* On sparse matrices, this will use SPQR from SuiteSparse
143+
* On CuMatrix, it will use a CUDA-accelerated QR from CuSolver.
144+
* On BandedMatrix and BlockBandedMatrix, it will use a banded QR.
145145
"""
146146
struct QRFactorization{P} <: AbstractFactorization
147147
pivot::P
@@ -324,9 +324,9 @@ end
324324
325325
Julia's built in `svd`. Equivalent to `svd!(A)`.
326326
327-
* On dense matrices, this uses the current BLAS implementation of the user's computer
328-
which by default is OpenBLAS but will use MKL if the user does `using MKL` in their
329-
system.
327+
* On dense matrices, this uses the current BLAS implementation of the user's computer
328+
which by default is OpenBLAS but will use MKL if the user does `using MKL` in their
329+
system.
330330
"""
331331
struct SVDFactorization{A} <: AbstractFactorization
332332
full::Bool

0 commit comments

Comments
 (0)