Mercurial > repos > public > sbplib
comparison +blockmatrix/isBlockmatrixTest.m @ 205:f0ef314e2070 feature/grids
blockmatrix: added function to calculate the block division for a given blockmatrix.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 15 Jun 2016 16:28:22 +0200 |
parents | 4ce0af75d2f4 |
children | f0f4ca946068 |
comparison
equal
deleted
inserted
replaced
204:4ce0af75d2f4 | 205:f0ef314e2070 |
---|---|
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 | |
57 }; | 55 }; |
58 | 56 |
59 for i = 1:length(cases) | 57 for i = 1:length(cases) |
60 in = cases{i}{1}; | 58 in = cases{i}{1}; |
61 out = blockmatrix.isBlockmatrix(in); | 59 out = blockmatrix.isBlockmatrix(in); |