comparison +blockmatrix/isDivision.m @ 707:0de70ec8bf60 feature/quantumTriangles

merge with feature/optim
author Ylva Rydin <ylva.rydin@telia.com>
date Fri, 10 Nov 2017 14:22:56 +0100
parents a5f1b0267dba
children
comparison
equal deleted inserted replaced
696:7c16b5af8d98 707:0de70ec8bf60
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;