Lines Matching refs:matrix
289 // to hold the combined matrix and copy the contents of this matrix
307 // Copy the contents of m into this matrix.
313 // Create the new rows array to hold the enlarged matrix.
340 void CompressedRowSparseMatrix::ToCRSMatrix(CRSMatrix* matrix) const {
341 matrix->num_rows = num_rows();
342 matrix->num_cols = num_cols();
344 matrix->rows.resize(matrix->num_rows + 1);
345 matrix->cols.resize(num_nonzeros());
346 matrix->values.resize(num_nonzeros());
348 copy(rows_.get(), rows_.get() + matrix->num_rows + 1, matrix->rows.begin());
349 copy(cols_.get(), cols_.get() + num_nonzeros(), matrix->cols.begin());
350 copy(values_.get(), values_.get() + num_nonzeros(), matrix->values.begin());