comparison +blockmatrix/getDivisionTest.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 f0ef314e2070
children
comparison
equal deleted inserted replaced
578:1fe16b34f114 579:a5f1b0267dba
54 [2 2; 2 1]; 54 [2 2; 2 1];
55 [2 2] 55 [2 2]
56 }, 56 },
57 {[2 1], 2} 57 {[2 1], 2}
58 }, 58 },
59 {
60 {zeros(3,0)},
61 {3, 0},
62 },
63 {
64 {zeros(3,0), zeros(3,0)},
65 {3, [0, 0]},
66 },
67 {
68 {zeros(3,0); zeros(2,0)},
69 {[3 2],0},
70 },
59 }; 71 };
60 72
61 for i = 1:length(cases) 73 for i = 1:length(cases)
62 in = cases{i}{1}; 74 in = cases{i}{1};
63 out = blockmatrix.getDivision(in); 75 out = blockmatrix.getDivision(in);