comparison diffOp.jl @ 2:43be32298ae2

Add function to get closure size
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 17 Dec 2018 12:45:30 +0100
parents b714e341a0ba
children cb8e50ca9e15
comparison
equal deleted inserted replaced
1:a286be5f8a32 2:43be32298ae2
1 abstract type DiffOp end
2
3 function apply(D::DiffOp, v::AbstractVector) where N
4 error("not implemented")
5 end
6
7 function innerProduct(D::DiffOp, u::AbstractVector, v::AbstractVector)::Real
8 error("not implemented")
9 end
10
11 function matrixRepresentation(D::DiffOp)
12 error("not implemented")
13 end
14
15 function boundaryCondition(D::DiffOp)
16 error("not implemented")
17 end
18
19 function interface(Du::DiffOp, Dv::DiffOp, b::BoundaryID; type)
20 error("not implemented")
21 end
22
23
24 # Differential operator for a*d^2/dx^2
25 struct Laplace1D <: DiffOp
26 grid
27 a
28 op
29 end
30
31 function apply(L::Laplace, v::AbstractVector)::AbstractVector
32
33 end