Skip to content

Commit 42e1130

Browse files
authored
fix cache_operator in fft tutorials
1 parent f6b0d9b commit 42e1130

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/tutorials/fftw.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ both in-place, and out-of-place by comparing its output to the analytical deriva
113113
ik = im * DiagonalOperator(k)
114114
Dx = F \ ik * F
115115
116+
Dx = cache_operator(Dx, x)
117+
116118
@show ≈(Dx * u, du; atol=1e-8)
117119
@show ≈(mul!(copy(u), Dx, u), du; atol=1e-8)
118120
```

0 commit comments

Comments
 (0)