comparison +grid/Grid.m @ 158:685ba6e6c679 feature/grids

Added abstract methods to Grid.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 19 Feb 2016 15:59:36 +0100
parents cf748f33cd5b
children 772365e2cf96
comparison
equal deleted inserted replaced
157:ea8103ad2cc5 158:685ba6e6c679
7 % d returns the spatial dimension of the grid 7 % d returns the spatial dimension of the grid
8 o = D(obj) 8 o = D(obj)
9 9
10 % points returns a n x d matrix containing the coordinates for all points. 10 % points returns a n x d matrix containing the coordinates for all points.
11 X = points(obj) 11 X = points(obj)
12
13 % Restricts the grid function gf on obj to the subgrid g.
14 gf = restrictFunc(gf, g)
15
16 % Projects the grid function gf on obj to the grid g.
17 gf = projectFunc(gf, g)
12 end 18 end
13 end 19 end
14
15 20
16 21
17 %% Should it be able to return a cell size aswell? For an equidistant grid this would be know 22 %% Should it be able to return a cell size aswell? For an equidistant grid this would be know
18 %% for other grids the constructor would have to make something up. 23 %% for other grids the constructor would have to make something up.
19 %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter. 24 %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter.