Skip to content

Commit a03f8ee

Browse files
committed
more docs
1 parent 0102cb2 commit a03f8ee

File tree

9 files changed

+72
-14
lines changed

9 files changed

+72
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SciMLOperators.jl
1+
# `SciMLOperators.jl`
22

33
*Unified operator interface for `SciML.ai` and beyond*
44

@@ -78,7 +78,7 @@ in-place cache so the operation is nonallocating.
7878
L2 = cache_operator(L2, u)
7979
L4 = cache_operator(L4, u)
8080

81-
# allocation-free
81+
# allocation-free evaluation
8282
mul!(v, L2, u)
8383
L4(v, u, p, t)
8484
```

docs/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
43
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
54

65
[compat]
76
Documenter = "0.27"
8-
SciMLBase = "1.74"
97
SciMLOperators = "0.2"

docs/pages.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
pages = [
22
"Home" => "index.md",
3-
"interface.md",
4-
"premade_operators.md",
5-
"tutorials/fftw.md"
3+
"Interface" => "interface.md",
4+
"Premade Operators" => "premade_operators.md",
5+
"API" => "api.md",
6+
"FFT Tutorial" => "tutorials/fftw.md",
7+
# "tutorials/linear.md",
8+
# "tutorials/nonlin.md",
9+
# "tutorials/ode.md",
10+
# "tutorials/lux.md",
611
]

docs/src/api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
```@autodocs
3+
Modules = [SciMLOperators]
4+
Order = [:function, :type]
5+
```

docs/src/assets/Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
4+
5+
[compat]
6+
Documenter = "0.27"
7+
SciMLOperators = "0.2"

docs/src/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SciMLOperators.jl: The SciML Operators Interface
22

3-
$(README)
3+
```@docs
4+
SciMLOperators
5+
```
46

57
## Reproducibility
68
```@raw html

docs/src/interface.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# The AbstractSciMLOperator Interface
22

3+
## Interface
4+
5+
```@docs
6+
update_coefficients
7+
update_coefficients!
8+
cache_operator
9+
```
10+
11+
## Traits
12+
13+
```@docs
14+
isconstant
15+
iscached
16+
issquare
17+
islinear
18+
has_adjoint
19+
has_expmv
20+
has_expmv!
21+
has_exp
22+
has_mul
23+
has_mul!
24+
has_ldiv
25+
has_ldiv!
26+
```
27+
328
## Formal Properties of SciMLOperators
429

530
These are the formal properties that an `AbstractSciMLOperator` should obey
@@ -77,4 +102,4 @@ update_coefficients!(γ, nothing, nothing, nothing; my_special_scaling=7.0)
77102
# Use operator application form
78103
@show γ([2.0], nothing, nothing; my_special_scaling = 5.0)
79104
nothing # hide
80-
```
105+
```

docs/src/premade_operators.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,32 @@
33
## Direct Operator Definitions
44

55
```@docs
6-
ScalarOperator
6+
ScalarOperator.IdentityOperator
77
SciMLOperators.NullOperator
8+
ScalarOperator
89
MatrixOperator
910
DiagonalOperator
1011
AffineOperator
12+
AddVector
1113
FunctionOperator
14+
TensorProductOperator
1215
```
1316

14-
## Lazy Operator Compositions
17+
## Lazy Scalar Operator Combination
18+
19+
```@docs
20+
SciMLOperators.AddedScalarOperator
21+
SciMLOperators.ComposedScalarOperator
22+
SciMLOperators.InvertedScalarOperator
23+
```
24+
## Lazy Operator Combination
1525

1626
```@docs
1727
SciMLOperators.ScaledOperator
18-
SciMLOperators.ComposedOperator
1928
SciMLOperators.AddedOperator
29+
SciMLOperators.ComposedOperator
2030
SciMLOperators.InvertedOperator
2131
SciMLOperators.InvertibleOperator
22-
SciMLOperators.AdjointedOperator
32+
SciMLOperators.AdjointOperator
2333
SciMLOperators.TransposedOperator
24-
```
34+
```

src/left.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ end
4040
# fallback wrappers
4141
###
4242

43+
"""
44+
$TYPEDEF
45+
"""
4346
struct AdjointOperator{T,LType} <: AbstractSciMLOperator{T}
4447
L::LType
4548

@@ -48,6 +51,9 @@ struct AdjointOperator{T,LType} <: AbstractSciMLOperator{T}
4851
end
4952
end
5053

54+
"""
55+
$TYPEDEF
56+
"""
5157
struct TransposedOperator{T,LType} <: AbstractSciMLOperator{T}
5258
L::LType
5359

0 commit comments

Comments
 (0)