8
if norm([1,2,3,-1,-2,-3],0)<>%inf then bugmes();quit;end
10
if ~isnan(norm([1,2,3,-1,-2,-3],%nan)) then bugmes();quit;end
12
if norm([])<>0 then bugmes();quit;end
18
if abs(norm(x,1) - sum(abs(x))) > eps then bugmes();quit;end
20
if abs(norm(x,2) - sqrt(sum(abs(x).*abs(x)))) > eps then bugmes();quit;end
22
if abs(norm(x,2) - norm(x)) > eps then bugmes();quit;end
26
if abs(norm(x,p) - sum(abs(x)^p)^(1/p)) > eps then bugmes();quit;end
30
if abs(norm(x,p) - sum(abs(x)^p)^(1/p)) > eps then bugmes();quit;end
32
if abs(norm(x,'inf') -maxi(abs(x))) > eps then bugmes();quit;end
34
if abs(norm(x,'inf') -norm(x,%inf)) > eps then bugmes();quit;end
36
if abs(norm(x,'fro') -norm(x,2)) > eps then bugmes();quit;end
43
if abs(norm(x,1) - sum(abs(x))) > eps then bugmes();quit;end
45
if abs(norm(x,2) - sqrt(sum(abs(x).*abs(x)))) > eps then bugmes();quit;end
47
if abs(norm(x,2) - norm(x)) > eps then bugmes();quit;end
51
// 100*%eps is needed for linux
53
if abs(norm(x,p) - maxi(abs(x))*sum((abs(x)/maxi(abs(x)))^p)^(1/p))> 100*%eps then bugmes();quit;end
57
if abs(norm(x,p) - maxi(abs(x))*sum((abs(x)/maxi(abs(x)))^p)^(1/p))> 100*%eps then bugmes();quit;end
59
if abs(norm(x,'inf') -maxi(abs(x)))> eps then bugmes();quit;end
61
if abs(norm(x,'inf') -norm(x,%inf)) > eps then bugmes();quit;end
63
if abs(norm(x,'fro') -norm(x,2))> eps then bugmes();quit;end
71
if abs(norm(x,1) - sum(abs(x))) > eps then bugmes();quit;end
73
if abs(norm(x,2) - sqrt(sum(abs(x).*abs(x)))) > eps then bugmes();quit;end
75
if abs(norm(x,2) - norm(x)) > eps then bugmes();quit;end
79
if abs(norm(x,p) - sum(abs(x)^p)^(1/p)) > eps then bugmes();quit;end
83
if abs(norm(x,p) - sum(abs(x)^p)^(1/p)) > eps then bugmes();quit;end
85
if abs(norm(x,'inf') -maxi(abs(x))) > eps then bugmes();quit;end
87
if abs(norm(x,'inf') -norm(x,%inf)) > eps then bugmes();quit;end
89
if abs(norm(x,'fro') -norm(x,2)) > eps then bugmes();quit;end
96
if abs(norm(a,1) - maxi(sum(abs(a),'r'))) > eps then bugmes();quit;end
98
if abs(norm(a,'inf') - maxi(sum(abs(a),'c'))) > eps then bugmes();quit;end
100
if abs(norm(a,%inf) - maxi(sum(abs(a),'c'))) > eps then bugmes();quit;end
102
if abs(norm(a,2) - maxi(svd(a))) > eps then bugmes();quit;end
104
if abs(norm(a,'fro') - norm(matrix(a,1,size(a,'*')),2)) > eps then bugmes();quit;end
109
if abs(norm(a,1) - maxi(sum(abs(a),'r'))) > eps then bugmes();quit;end
111
if abs(norm(a,'inf') - maxi(sum(abs(a),'c'))) > eps then bugmes();quit;end
113
if abs(norm(a,%inf) - maxi(sum(abs(a),'c'))) > eps then bugmes();quit;end
115
if abs(norm(a,2) - maxi(svd(a))) > eps then bugmes();quit;end
117
if abs(norm(a,'fro') - norm(matrix(a,1,size(a,'*')),2)) > eps then bugmes();quit;end