1 function OK = test_ldg_orthogonality
2 %
function OK = test_ldg_orthogonality
4 %
function testing, whether the ldg basis functions are orthogonal
7 % Bernard Haasdonk 28.8.2009
12 for qdeg = (pdeg*2):11
13 [G,V] = ldg_basis_orthonormalization_matrix(pdeg,qdeg);
14 maxerr = max(max(abs(G-eye(size(G)))));
17 disp([
'pdeg= ',num2str(pdeg),
', qdeg=',num2str(qdeg),...
18 ',|G-I|_infty=',num2str(maxerr)])
19 error('ldg functions not orthogonal!')