Skip to content

Commit b16ef28

Browse files
committed
no more warning
1 parent e0f81bb commit b16ef28

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/SciMLOperators.jl

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SparseArrays: sparse, issparse
2121
"""
2222
$(TYPEDEF)
2323
24-
## Interface
24+
# Interface
2525
2626
An `L::AbstractSciMLOperator` can be called like a function. This behaves
2727
like multiplication by the linear operator represented by the
@@ -30,10 +30,19 @@ like multiplication by the linear operator represented by the
3030
- `L(du, u, p, t)` for in-place operator evaluation
3131
- `du = L(u, p, t)` for out-of-place operator evaluation
3232
33-
If the operator is not a constant, update it with `(u, p, t)`.
34-
A mutating form, i.e. `update_coefficients!(L, u, p, t)` that changes the
35-
internal coefficients, and an out-of-place form
36-
`L_new = update_coefficients(L, u, p, t)`.
33+
Operator evaluation methods update its coefficients with `(u, p, t)`
34+
information using the `update_coefficients(!)` method. The methods
35+
are exported and can be called as follows:
36+
37+
- `update_coefficients!(L, u, p, t)` for out-of-place operator update
38+
- `L = update_coefficients(L, u, p, t)` for in-place operator update
39+
40+
SciMLOperators also overloads `Base.*`, `LinearAlgebra.mul!`,
41+
`LinearAlgebra.ldiv!` for operator evaluation without updating operator state.
42+
An `AbstractSciMLOperator` behaves like a matrix in these methods.
43+
Allocation-free methods, suffixed with a `!` often need cache arrays.
44+
To precache an `AbstractSciMLOperator`, call the function
45+
`L = cache_operator(L, input_vector)`.
3746
"""
3847
abstract type AbstractSciMLOperator{T} end
3948

src/interface.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
# Operator interface
44
###
55

6-
"""
7-
Function call and multiplication:
8-
- L(du, u, p, t) for in-place operator evaluation,
9-
- du = L(u, p, t) for out-of-place operator evaluation
10-
11-
If the operator is not a constant, update it with (u,p,t). A mutating form, i.e.
12-
update_coefficients!(A,u,p,t) that changes the internal coefficients, and a
13-
out-of-place form B = update_coefficients(A,u,p,t).
14-
15-
"""
166
function (::AbstractSciMLOperator) end
177

188
###

0 commit comments

Comments
 (0)