Lines Matching full:cols
46 // duplicates in the pair of arrays rows and cols, i.e., there is no
49 // rows[i] == rows[j] && cols[i] == cols[j]
53 RowColLessThan(const int* rows, const int* cols)
54 : rows(rows), cols(cols) {
59 return (cols[x] < cols[y]);
65 const int* cols;
106 sort(index.begin(), index.end(), RowColLessThan(m.rows(), m.cols()));
116 // Copy the contents of the cols and values array in the order given
121 cols_[i] = m.cols()[idx];
229 copy(m.cols(), m.cols() + m.num_nonzeros(), &cols_[num_nonzeros()]);
261 matrix->cols = cols_;
266 matrix->cols.resize(matrix->rows[matrix->num_rows]);
304 int* cols = matrix->mutable_cols();
316 *(cols++) = col_cursor + c;