Fix matrix constructor

This commit is contained in:
Ilya Grigorev
2024-09-20 23:02:25 +05:00
parent 8e6024a01e
commit ad4bbe1af0
+1 -4
View File
@@ -77,10 +77,7 @@ std::ostream& operator<<(std::ostream& cout, ColumnVector& vectorObj) {
Matrix::Matrix(int n, int m) {
rows = n;
columns = m;
matrix.resize(n);
for (auto& row : matrix) {
row = ColumnVector(m);
}
matrix.resize(n, ColumnVector(m));
}
Matrix::Matrix(const Matrix& other) {