rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
inner_product_matrix.m
1 function W = inner_product_matrix(grid,params)
2 %function W = inner_product_matrix(grid,params)
3 %
4 % function computing the stiffness-matrix of the discrete functions
5 % on grid specified in params.
6 %
7 % required fields of params:
8 %
9 % 'inner_product_matrix_algorithm' : name of function, which
10 % gives the matrix W for L2-norm computation U1' * W * U2
11 % e.g. fv_inner_product_matrix. Arguments of this function
12 % are the grid and params.
13 
14 % Bernard Haasdonk 20.7.2006
15 
16 % currently simple diagonal weighting of element values sufficient
17 W = feval(params.inner_product_matrix_algorithm,grid,params);
18 
19 % TO BE ADJUSTED TO NEW SYNTAX
20 %| \docupdate