1 function W = inner_product_matrix(grid,params)
2 %
function W = inner_product_matrix(grid,params)
4 %
function computing the stiffness-matrix of the discrete functions
5 % on grid specified in params.
7 % required fields of params:
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.
14 % Bernard Haasdonk 20.7.2006
16 % currently simple diagonal weighting of element values sufficient
17 W = feval(params.inner_product_matrix_algorithm,grid,params);
19 % TO BE ADJUSTED TO NEW SYNTAX