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) {
|
Matrix::Matrix(int n, int m) {
|
||||||
rows = n;
|
rows = n;
|
||||||
columns = m;
|
columns = m;
|
||||||
matrix.resize(n);
|
matrix.resize(n, ColumnVector(m));
|
||||||
for (auto& row : matrix) {
|
|
||||||
row = ColumnVector(m);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix::Matrix(const Matrix& other) {
|
Matrix::Matrix(const Matrix& other) {
|
||||||
|
|||||||
Reference in New Issue
Block a user