Skip to content

Commit 765df08

Browse files
authored
Update README.md
1 parent c79564a commit 765df08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Let `M`, `D`, `F` be matrix-based, diagonal-matrix-based, and function-based
4242

4343
```julia
4444
N = 4
45-
f = (u, p, t) -> u .* u
45+
f(u, p, t) = u .* u
46+
f(v, u, p, t) = v .= u .* u
4647

4748
M = MatrixOperator(rand(N, N))
4849
D = DiagonalOperator(rand(N))

0 commit comments

Comments
 (0)