repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
gitinore *.txt files
[wrf-fire-matlab.git]
/
femwind
/
check_symmetry.m
blob
704e1d84b6f1aa01ba9f57a68f8aae8c58000f17
1
function check_symmetry(A,s,tol)
2
% check_sym(A,s,tol)
3
err_A=norm(A-A','fro');
4
big_A=norm(A,'fro');
5
tol_A=big_A*length(A)*tol;
6
if err_A > tol_A,
7
fprintf('max nonsymmetry %g > tolerance %g\n',err_A,tol_A);
8
error([s,' must be symmetric']);
9
end
10
end