Mercurial > repos > public > sbplib
comparison +blockmatrix/toMatrixTest.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 | 50a323da7c7f |
| children |
comparison
equal
deleted
inserted
replaced
| 578:1fe16b34f114 | 579:a5f1b0267dba |
|---|---|
| 49 [], [] | 49 [], [] |
| 50 }, | 50 }, |
| 51 [2 2 1; | 51 [2 2 1; |
| 52 2 1 2], | 52 2 1 2], |
| 53 }, | 53 }, |
| 54 { | |
| 55 {zeros(0,0)}, | |
| 56 [], | |
| 57 }, | |
| 58 { | |
| 59 {zeros(3,0), zeros(3,0)}, | |
| 60 zeros(3,0), | |
| 61 }, | |
| 62 { | |
| 63 {zeros(3,0); zeros(2,0)}, | |
| 64 zeros(5,0), | |
| 65 }, | |
| 66 { | |
| 67 {zeros(0,3), zeros(0,2)}, | |
| 68 zeros(0,5), | |
| 69 }, | |
| 54 }; | 70 }; |
| 55 | 71 |
| 56 for i = 1:length(cases) | 72 for i = 1:length(cases) |
| 57 in = cases{i}{1}; | 73 in = cases{i}{1}; |
| 58 out = full(blockmatrix.toMatrix(in)); | 74 out = full(blockmatrix.toMatrix(in)); |
