|
From: | Rik |
Subject: | Re: patch for union.m |
Date: | Fri, 31 Jul 2015 11:14:59 -0700 |
On 07/31/2015 09:00 AM,
address@hidden wrote:
Juan, I know you were following the code that was already there, but I think it can be simplified further. There is no need to check both isvector() and isrow() since isrow already checks that the input is a vector. + isrowvec = ( isempty(a) || (isvector (a) && isrow (a)) ) && ... + ( isempty(b) || (isvector (b) && isrow (b)) ); => isrowvec = (isrow (a) || isempty (a)) && (isrow (b) || isempty (b)); --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |