Fixed rather embarassing bug in EQUALITY, with Natesh
parent
69c5c9f1ca
commit
dec1774923
|
@ -6,7 +6,7 @@ if nargin<4,tol=1e-9;end
|
||||||
sameSize = size(expected)==size(actual);
|
sameSize = size(expected)==size(actual);
|
||||||
if all(sameSize)
|
if all(sameSize)
|
||||||
equal = abs(expected-actual)<tol;
|
equal = abs(expected-actual)<tol;
|
||||||
if ~all(equal)
|
if ~all(equal(:))
|
||||||
warning(['EQUALITY ' name ' fails']);
|
warning(['EQUALITY ' name ' fails']);
|
||||||
expected
|
expected
|
||||||
actual
|
actual
|
||||||
|
|
Loading…
Reference in New Issue