diff options
Diffstat (limited to 'src/engine/matrix.tpp')
-rw-r--r-- | src/engine/matrix.tpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/matrix.tpp b/src/engine/matrix.tpp index b9fa495..bddf76a 100644 --- a/src/engine/matrix.tpp +++ b/src/engine/matrix.tpp @@ -19,7 +19,9 @@ void Matrix<Element>::fill(Element element) std::vector<Element> row_vector = _matrix[row]; for (unsigned int column = 0U; column < row_vector.capacity(); column++) + { _matrix[row][column] = element; + } } } @@ -29,7 +31,9 @@ void Matrix<Element>::print() for (std::vector<Element> row : _matrix) { for (Element element : row) + { std::cout << element; + } std::cout << "\n"; } |