source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/matrixnorms.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 303 bytes
Line 
1function pass = matrixnorms
2
3% Nick Trefethen  31 May 2008
4% This matrix should have all norms equal to 1
5
6x = chebfun(1,[0 1]);
7A = [0*x 0*x 0*x x 0*x];
8norms = zeros(4,1);
9norms(1) = norm(A,1);
10norms(2) = norm(A,2);
11norms(3) = norm(A,inf);
12norms(4) = norm(A,'fro');
13pass = (norm(norms-ones(4,1))==0);
Note: See TracBrowser for help on using the repository browser.