Initial commit

This commit is contained in:
2026-08-24 19:27:25 +02:00
commit bdda0c3880
7 changed files with 219 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef MATRIX_HPP
#define MATRIX_HPP
#include <array>
#include <vector>
#include <iostream>
class Matrix {
public:
Matrix(int rows, int cols);
std::array<int, 2> size() const;
double& operator()(int i,int j);
double operator()(int i,int j) const;
void print() const;
private:
std::vector<double> data;
int rows;
int cols;
};
#endif