Lines Matching refs:matrix
45 inline double NormalizeRow(const int row, CompressedRowSparseMatrix* matrix) { in NormalizeRow() argument
46 const int row_begin = matrix->rows()[row]; in NormalizeRow()
47 const int row_end = matrix->rows()[row + 1]; in NormalizeRow()
49 double* values = matrix->mutable_values(); in NormalizeRow()
118 CompressedRowSparseMatrix* matrix) { in DropEntriesAndAddRow() argument
119 int* rows = matrix->mutable_rows(); in DropEntriesAndAddRow()
120 int* cols = matrix->mutable_cols(); in DropEntriesAndAddRow()
121 double* values = matrix->mutable_values(); in DropEntriesAndAddRow()
122 int num_nonzeros = rows[matrix->num_rows()]; in DropEntriesAndAddRow()
125 matrix->set_num_rows(matrix->num_rows() + 1); in DropEntriesAndAddRow()
126 rows[matrix->num_rows()] = num_nonzeros; in DropEntriesAndAddRow()
159 matrix->set_num_rows(matrix->num_rows() + 1); in DropEntriesAndAddRow()
160 rows[matrix->num_rows()] = num_nonzeros; in DropEntriesAndAddRow()
165 const CompressedRowSparseMatrix& matrix, in IncompleteLQFactorization() argument
170 const int num_rows = matrix.num_rows(); in IncompleteLQFactorization()
171 const int num_cols = matrix.num_cols(); in IncompleteLQFactorization()
172 const int* rows = matrix.rows(); in IncompleteLQFactorization()
173 const int* cols = matrix.cols(); in IncompleteLQFactorization()
174 const double* values = matrix.values(); in IncompleteLQFactorization()
200 l_i(j) = RowDotProduct(matrix, i, q, j); in IncompleteLQFactorization()