Mercurial > octave
view test/bug-59661/bug59661.m @ 31158:8f3885b4d7ae stable
test: Set random state and increase tolerance for interpn.m test (bug #62817)
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Thu, 28 Jul 2022 19:22:56 -0400 |
parents | 370b5ded5e6a |
children |
line wrap: on
line source
classdef bug59661 < handle properties p = []; endproperties methods function o = bug59661 (varargin) o.p = [varargin{:}]; endfunction function res = eq (a, b) if (numel (a.p) > 1 && numel (b.p) > 1 && ! isequal (size (a.p), size (b.p))) res = false; return; endif if (isequal (size (a.p), size (b.p))) res = eq (a.p, b.p); else res = bsxfun (@eq, a.p, b.p); endif endfunction endmethods endclassdef