rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
get_coercivity.m
1 function coercivity_alpha = get_coercivity(model,K,W)
2 %function coercivity_alpha = get_coercivity(model,K,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 % input:
8 % - K: Operator Matrix
9 % - W: inner product matrix
10 %
11 % output:
12 % - coercivity_alpha: coercivity constant.
13 %
14 % coercivity_alpha is the smallest Eigenvalue of:
15 % K*v = lambda*W*v
16 %
17 % Oliver Zeeb, 2013/11/18
18 
19 %coercivity always defined on the symmetric part:
20 K = (K+K')/2;
21 coercivity_alpha = eigs(K,W,1,'sa');
22