Lines Matching defs:blocks
40 vector<int> blocks;
41 blocks.push_back(3);
42 blocks.push_back(4);
43 blocks.push_back(5);
45 BlockRandomAccessDenseMatrix m(blocks);
50 for (int i = 0; i < blocks.size(); ++i) {
52 for (int j = 0; j < blocks.size(); ++j) {
65 col_idx += blocks[j];
67 row_idx += blocks[i];
72 vector<int> blocks;
73 blocks.push_back(3);
74 blocks.push_back(4);
75 blocks.push_back(5);
78 BlockRandomAccessDenseMatrix m(blocks);
81 for (int i = 0; i < blocks.size(); ++i) {
82 for (int j = 0; j < blocks.size(); ++j) {
90 row, col, blocks[i], blocks[j]) =
91 (i+1) * (j+1) * Matrix::Ones(blocks[i], blocks[j]);
98 for (int i = 0; i < blocks.size(); ++i) {
100 for (int j = 0; j < blocks.size(); ++j) {
102 for (int r = 0; r < blocks[i]; ++r) {
103 for (int c = 0; c < blocks[j]; ++c) {
108 col_idx += blocks[j];
110 row_idx += blocks[i];