You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
293 B
15 lines
293 B
1 week ago
|
#pragma once
|
||
|
#include <vector>
|
||
|
|
||
|
typedef std::vector<int> MatrixRow;
|
||
|
typedef std::vector<MatrixRow> Matrix;
|
||
|
|
||
|
/*
|
||
|
* Just a quick thing to reset a matrix to a value.
|
||
|
*/
|
||
|
inline void matrix_assign(Matrix &out, int new_value) {
|
||
|
for(auto &row : out) {
|
||
|
row.assign(row.size(), new_value);
|
||
|
}
|
||
|
}
|