Skip to content

Commit ac7e96b

Browse files
committed
[documentation] Improve the structure of matrix_free.md
1 parent 43c113c commit ac7e96b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/matrix_free.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ where
6464

6565
See the [tutorial](https://jso.dev/tutorials/introduction-to-linear-operators/) and the detailed [documentation](https://jso.dev/LinearOperators.jl/dev/) for more information on `LinearOperators.jl`.
6666

67-
## Examples
67+
## Examples with automatic differentiation
6868

6969
In the field of nonlinear optimization, finding critical points of a continuous function frequently involves linear systems with a Hessian or Jacobian as coefficient. Materializing such operators as matrices is expensive in terms of operations and memory consumption and is unreasonable for high-dimensional problems. However, it is often possible to implement efficient Hessian-vector and Jacobian-vector products, for example with the help of automatic differentiation tools, and used within Krylov solvers. We now illustrate variants with explicit matrices and with matrix-free operators for two well-known optimization methods.
7070

@@ -153,6 +153,8 @@ opJ = LinearOperator(Float64, 3, 2, false, false, (y, v) -> J(y, v),
153153
lsmr(opJ, -F(xk))
154154
```
155155

156+
## Example with FFT and IFFT
157+
156158
### Example 3: Solving the Poisson equation with FFT and IFFT
157159

158160
In applications related to partial differential equations (PDEs), linear systems can arise from discretizing differential operators.

0 commit comments

Comments
 (0)