Mercurial > repos > public > sbplib
comparison +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 |
comparison
equal
deleted
inserted
replaced
578:1fe16b34f114 | 579:a5f1b0267dba |
---|---|
19 b = true; | 19 b = true; |
20 end | 20 end |
21 | 21 |
22 function b = isDivisionVector(v) | 22 function b = isDivisionVector(v) |
23 if isempty(v) | 23 if isempty(v) |
24 b = false; | 24 b = true; |
25 return | 25 return |
26 end | 26 end |
27 | 27 |
28 if any(v <= 0) | 28 if any(v < 0) |
29 b = false; | 29 b = false; |
30 return | 30 return |
31 end | 31 end |
32 | 32 |
33 b = true; | 33 b = true; |