I want a fast method to clear(set a matrix with 0 everywhere) a matrix of type vector<vector<int>>
, just simple as the initialization was:
vector<vector<int>> values(nr_rows, vector<int>(nr_cols, 0));
Can I do this without a for
?
I want a fast method to clear(set a matrix with 0 everywhere) a matrix of type vector<vector<int>>
, just simple as the initialization was:
vector<vector<int>> values(nr_rows, vector<int>(nr_cols, 0));
Can I do this without a for
?