comparison src/Grids/AbstractGrid.jl @ 333:01b851161018 refactor/combine_to_one_package

Start converting to one package by moving all the files to their correct location
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 25 Sep 2020 13:06:02 +0200
parents Grids/src/AbstractGrid.jl@b3506cfbb9d8
children c16abc564b82
comparison
equal deleted inserted replaced
332:535f1bff4bcc 333:01b851161018
1 """
2 AbstractGrid
3
4 Should implement
5 dimension(grid::AbstractGrid)
6 points(grid::AbstractGrid)
7
8 """
9 abstract type AbstractGrid end
10
11 function dimension end
12 function points end
13 export dimension, points
14
15 """
16 evalOn(g::AbstractGrid, f::Function)
17
18 Evaluate function f on the grid g
19 """
20 function evalOn(g::AbstractGrid, f::Function)
21 F(x) = f(x...)
22 return F.(points(g))
23 end
24 export evalOn