Mercurial > octave-nkf
diff scripts/set/union.m @ 20472:c3b2ec6a1586
Remove redundant isvector() calls in set/ functions.
* intersect.m, setdiff.m, setxor.m, union.m:
Replace "isvector (x) && isrow (x)" with just "isrow (x)".
author | Rik <rik@octave.org> |
---|---|
date | Mon, 10 Aug 2015 13:12:22 -0700 |
parents | 6dc15d4cc17e |
children | e59a44fa74ff |
line wrap: on
line diff
--- a/scripts/set/union.m Mon Aug 10 08:45:06 2015 -0700 +++ b/scripts/set/union.m Mon Aug 10 13:12:22 2015 -0700 @@ -51,7 +51,7 @@ [a, b] = validsetargs ("union", a, b, varargin{:}); by_rows = nargin == 3; - isrowvec = isvector (a) && isvector (b) && isrow (a) && isrow (b); + isrowvec = isrow (a) && isrow (b); if (by_rows) y = [a; b];