Lines Matching refs:row
46 unsigned row = appendExtraRow(); in appendExtraRow() local
48 at(row, col) = elems[col]; in appendExtraRow()
49 return row; in appendExtraRow()
69 void Matrix::swapRows(unsigned row, unsigned otherRow) { in swapRows() argument
70 assert((row < getNumRows() && otherRow < getNumRows()) && in swapRows()
72 if (row == otherRow) in swapRows()
75 std::swap(at(row, col), at(otherRow, col)); in swapRows()
83 for (unsigned row = 0; row < nRows; row++) in swapColumns() local
84 std::swap(at(row, column), at(row, otherColumn)); in swapColumns()
87 MutableArrayRef<int64_t> Matrix::getRow(unsigned row) { in getRow() argument
88 return {&data[row * nReservedColumns], nColumns}; in getRow()
91 ArrayRef<int64_t> Matrix::getRow(unsigned row) const { in getRow()
92 return {&data[row * nReservedColumns], nColumns}; in getRow()
95 void Matrix::setRow(unsigned row, ArrayRef<int64_t> elems) { in setRow() argument
99 at(row, i) = elems[i]; in setRow()
189 void Matrix::fillRow(unsigned row, int64_t value) { in fillRow() argument
191 at(row, col) = value; in fillRow()
205 for (unsigned row = 0, e = getNumRows(); row < e; ++row) in addToColumn() local
206 at(row, targetColumn) += scale * at(row, sourceColumn); in addToColumn()
210 for (unsigned row = 0, e = getNumRows(); row < e; ++row) in negateColumn() local
211 at(row, column) = -at(row, column); in negateColumn()
214 void Matrix::negateRow(unsigned row) { in negateRow() argument
216 at(row, column) = -at(row, column); in negateRow()
219 int64_t Matrix::normalizeRow(unsigned row, unsigned cols) { in normalizeRow() argument
220 return normalizeRange(getRow(row).slice(0, cols)); in normalizeRow()
223 int64_t Matrix::normalizeRow(unsigned row) { in normalizeRow() argument
224 return normalizeRow(row, getNumColumns()); in normalizeRow()
244 for (unsigned row = 0, e = getNumRows(); row < e; row++) in postMultiplyWithColumn() local
246 result[row] += at(row, i) * colVec[i]; in postMultiplyWithColumn()
251 for (unsigned row = 0; row < nRows; ++row) { in print() local
253 os << at(row, column) << ' '; in print()