Lines Matching refs:nColumns
18 : nRows(rows), nColumns(columns), in Matrix()
19 nReservedColumns(std::max(nColumns, reservedColumns)), in Matrix()
45 assert(elems.size() == nColumns && "elems must match row length!"); in appendExtraRow()
47 for (unsigned col = 0; col < nColumns; ++col) in appendExtraRow()
53 if (newNColumns < nColumns) in resizeHorizontally()
54 removeColumns(newNColumns, nColumns - newNColumns); in resizeHorizontally()
55 if (newNColumns > nColumns) in resizeHorizontally()
56 insertColumns(nColumns, newNColumns - nColumns); in resizeHorizontally()
74 for (unsigned col = 0; col < nColumns; col++) in swapRows()
88 return {&data[row * nReservedColumns], nColumns}; in getRow()
92 return {&data[row * nReservedColumns], nColumns}; in getRow()
106 assert(pos <= nColumns); in insertColumns()
108 if (nColumns + count > nReservedColumns) { in insertColumns()
109 nReservedColumns = llvm::NextPowerOf2(nColumns + count); in insertColumns()
112 nColumns += count; in insertColumns()
119 if (c >= nColumns) { // NOLINT in insertColumns()
148 assert(pos + count - 1 < nColumns); in removeColumns()
150 for (unsigned c = pos; c < nColumns - count; ++c) in removeColumns()
152 for (unsigned c = nColumns - count; c < nColumns; ++c) in removeColumns()
155 nColumns -= count; in removeColumns()
168 for (unsigned c = 0; c < nColumns; ++c) in insertRows()
185 for (unsigned c = 0; c < nColumns; ++c) in copyRow()
190 for (unsigned col = 0; col < nColumns; ++col) in fillRow()
197 for (unsigned col = 0; col < nColumns; ++col) in addToRow()
252 for (unsigned column = 0; column < nColumns; ++column) in print()
263 if (nColumns > nReservedColumns) in hasConsistentState()
266 for (unsigned c = nColumns; c < nReservedColumns; ++c) in hasConsistentState()