Lines Matching full:matrix
200 void CompressedRowSparseMatrix::ToDenseMatrix(Matrix* dense_matrix) const {
228 // Copy the contents of m into this matrix.
257 void CompressedRowSparseMatrix::ToCRSMatrix(CRSMatrix* matrix) const {
258 matrix->num_rows = num_rows_;
259 matrix->num_cols = num_cols_;
260 matrix->rows = rows_;
261 matrix->cols = cols_;
262 matrix->values = values_;
265 matrix->rows.resize(matrix->num_rows + 1);
266 matrix->cols.resize(matrix->rows[matrix->num_rows]);
267 matrix->values.resize(matrix->rows[matrix->num_rows]);
300 CompressedRowSparseMatrix* matrix =
303 int* rows = matrix->mutable_rows();
304 int* cols = matrix->mutable_cols();
305 double* values = matrix->mutable_values();
323 *matrix->mutable_row_blocks() = blocks;
324 *matrix->mutable_col_blocks() = blocks;
328 return matrix;