Lines Matching defs:blocks
42 vector<int> blocks;
43 blocks.push_back(3);
44 blocks.push_back(4);
45 blocks.push_back(5);
51 num_nonzeros += blocks[0] * blocks[0];
54 num_nonzeros += blocks[1] * blocks[1];
57 num_nonzeros += blocks[1] * blocks[2];
60 num_nonzeros += blocks[2] * blocks[0];
62 BlockRandomAccessSparseMatrix m(blocks, block_pairs);
81 EXPECT_EQ(row_stride, blocks[row_block_id]);
82 EXPECT_EQ(col_stride, blocks[col_block_id]);
86 row, col, blocks[row_block_id], blocks[col_block_id]) =
88 Matrix::Ones(blocks[row_block_id], blocks[col_block_id]);
117 // There is nothing else in the matrix besides these four blocks.
127 vector<int> blocks;
128 blocks.push_back(1);
131 m_.reset(new BlockRandomAccessSparseMatrix(blocks, block_pairs));