diff 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
line wrap: on
line diff
--- a/diffOp.jl	Thu Jan 10 11:32:58 2019 +0100
+++ b/diffOp.jl	Thu Jan 10 12:54:40 2019 +0100
@@ -29,7 +29,7 @@
 end
 
 # u = L*v
-function apply(L::Laplace1D, u::AbstractVector, v::AbstractVector)
+function apply!(L::Laplace1D, u::AbstractVector, v::AbstractVector)
     N = closureSize(L.op)
     M = length(v)