Mercurial > repos > public > sbplib_julia
comparison diffOp.jl @ 31:f2842e08d813
Change name to apply to show that it is mutating
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 10 Jan 2019 12:54:40 +0100 |
parents | 10a5e7c77fb8 |
children | e8d7137b3f07 |
comparison
equal
deleted
inserted
replaced
30:e86c65958aa1 | 31:f2842e08d813 |
---|---|
27 a | 27 a |
28 op | 28 op |
29 end | 29 end |
30 | 30 |
31 # u = L*v | 31 # u = L*v |
32 function apply(L::Laplace1D, u::AbstractVector, v::AbstractVector) | 32 function apply!(L::Laplace1D, u::AbstractVector, v::AbstractVector) |
33 N = closureSize(L.op) | 33 N = closureSize(L.op) |
34 M = length(v) | 34 M = length(v) |
35 | 35 |
36 h = scaling(L.grid) | 36 h = scaling(L.grid) |
37 | 37 |