Fix matrix constructor
This commit is contained in:
+1
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user