rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
get_continuity.m
1 function cont_gamma = get_continuity(model,A,W)
2 %function cont_gamma = get_continuity(model,A,W)
3 %
4 % This function computes the coercivity constant alpha for a discrete
5 % operator K with respect to the inner product matrix (mass matrix) W.
6 %
7 % A generalized eigenvalue problem is solved for obtaining the continuity
8 % constant gamma.
9 %
10 % input:
11 % - K: Operator Matrix
12 % - W: inner product matrix
13 %
14 % output:
15 % - cont_gamma : continuity constant.
16 %
17 % This function does exactly the same as get_infsup.m
18 % but returns the largest eigenvalue.
19 %
20 % Oliver Zeeb
21 
22 Y=A'*(W\A);
23 cont_gamma = sqrt(eigs(Y,W,1));