method overrides == operator $Id$
0001 function tf = eq(Y1, Y2) 0002 % method overrides == operator 0003 % 0004 % $Id$ 0005 0006 tf = 0; 0007 if ~isa(Y1, 'marsy') | ~isa(Y2, 'marsy'), return, end 0008 if ~all(summary_size(Y1) == summary_size(Y2)), return, end 0009 if is_summarized(Y1) ~= is_summarized(Y2), return, end 0010 if is_summarized(Y1) 0011 y1 = summary_data(Y1); 0012 y2 = summary_data(Y2); 0013 else 0014 y1 = region_data(Y1); 0015 y1 = [y1{:}]; 0016 y2 = region_data(Y2); 0017 y2 = [y2{:}]; 0018 end 0019 tf = all(all(y1 == y2)); 0020 0021