diff +blockmatrix/isDivision.m @ 579:a5f1b0267dba feature/grids

Be less strict about what is considered a block matrix Empty blocks of different sizes are now allowed as well as empty block dimensions
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 07 Sep 2017 09:21:04 +0200
parents 764438b52541
children
line wrap: on
line diff
--- a/+blockmatrix/isDivision.m	Thu Sep 07 09:18:55 2017 +0200
+++ b/+blockmatrix/isDivision.m	Thu Sep 07 09:21:04 2017 +0200
@@ -21,11 +21,11 @@
 
 function b = isDivisionVector(v)
     if isempty(v)
-        b = false;
+        b = true;
         return
     end
 
-    if any(v <= 0)
+    if any(v < 0)
         b = false;
         return
     end