Mercurial > repos > public > sbplib
comparison +blockmatrix/isDivision.m @ 704:111fcbcff2e9 feature/optim
merg with featuew grids
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Fri, 03 Nov 2017 10:53:15 +0100 |
parents | a5f1b0267dba |
children |
comparison
equal
deleted
inserted
replaced
703:027f606fa691 | 704:111fcbcff2e9 |
---|---|
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; |