Mercurial > repos > public > sbplib
comparison +blockmatrix/isBlockmatrixTest.m @ 425:e56dbd9e4196 feature/grids
Merge feature/beams
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Tue, 07 Feb 2017 16:09:02 +0100 |
| parents | f0f4ca946068 |
| children |
comparison
equal
deleted
inserted
replaced
| 423:a2cb0d4f4a02 | 425:e56dbd9e4196 |
|---|---|
| 50 [2 2; 2 1], [1; 2]; | 50 [2 2; 2 1], [1; 2]; |
| 51 [], [] | 51 [], [] |
| 52 }, | 52 }, |
| 53 true % Empty blocks allowed. | 53 true % Empty blocks allowed. |
| 54 }, | 54 }, |
| 55 { | |
| 56 blockmatrix.zero({[1 2 3],[2 3]}), | |
| 57 true % A zero block matrix is a block matrix | |
| 58 }, | |
| 55 }; | 59 }; |
| 56 | 60 |
| 57 for i = 1:length(cases) | 61 for i = 1:length(cases) |
| 58 in = cases{i}{1}; | 62 in = cases{i}{1}; |
| 59 out = blockmatrix.isBlockmatrix(in); | 63 out = blockmatrix.isBlockmatrix(in); |
