Skip to content

Commit 425b9f3

Browse files
change linearproblem docs to a docstring
1 parent 8e31fd7 commit 425b9f3

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Krylov = "0.7.11, 0.8"
3030
KrylovKit = "0.5"
3131
RecursiveFactorization = "0.2.8"
3232
Reexport = "1"
33-
SciMLBase = "1.25"
33+
SciMLBase = "1.32"
3434
Setfield = "0.7, 0.8"
3535
UnPack = "1"
3636
julia = "1.6"

docs/src/basics/LinearProblem.md

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,5 @@
11
# Linear Problems
22

3-
## Mathematical Specification of a Linear Problem
4-
5-
### Concrete LinearProblem
6-
7-
To define a `LinearProblem`, you simply need to give the `AbstractMatrix` ``A``
8-
and an `AbstractVector` ``b`` which defines the linear system:
9-
10-
```math
11-
A*u = b
12-
```
13-
14-
### Matrix-Free LinearProblem
15-
16-
For matrix-free versions, the specification of the problem is given by an
17-
operator `A(u,p,t)` which computes `A*u`, or in-place as `A(du,u,p,t)`. These
18-
are specified via the `AbstractSciMLOperator` interface. For more details, see
19-
the [SciMLBase Documentation](https://scimlbase.sciml.ai/dev/).
20-
21-
Note that matrix-free versions of LinearProblem definitions are not compatible
22-
with all solvers. To check a solver for compatibility, use the function xxxxx.
23-
24-
## Problem Type
25-
26-
### Constructors
27-
28-
Optionally, an initial guess ``u₀`` can be supplied which is used for iterative
29-
methods.
30-
31-
```julia
32-
LinearProblem{isinplace}(A,x,p=NullParameters();u0=nothing,kwargs...)
33-
LinearProblem(f::AbstractDiffEqOperator,u0,p=NullParameters();u0=nothing,kwargs...)
34-
```
35-
36-
`isinplace` optionally sets whether the function is in-place or not, i.e. whether
37-
the solvers are allowed to mutate. By default this is true for `AbstractMatrix`,
38-
and for `AbstractSciMLOperator`s it matches the choice of the operator definition.
39-
40-
Parameters are optional, and if not given, then a `NullParameters()` singleton
41-
will be used, which will throw nice errors if you try to index non-existent
42-
parameters. Any extra keyword arguments are passed on to the solvers.
43-
44-
### Fields
45-
46-
* `A`: The representation of the linear operator.
47-
* `b`: The right-hand side of the linear system.
48-
* `p`: The parameters for the problem. Defaults to `NullParameters`. Currently unused.
49-
* `u0`: The initial condition used by iterative solvers.
50-
* `kwargs`: The keyword arguments passed on to the solvers.
3+
```@docs
4+
LinearProblem
5+
```

0 commit comments

Comments
 (0)