So i have this class that represtents matrix in my header file. My question is how do i initialize my org_matrix by already created matrix for example:
Matrix_t m{
{INF, 10, 8, 19, 12},
{10, INF, 20, 6, 3},
{8, 20, INF, 4, 2},
{19, 6, 4, INF, 7},
{12, 3, 2, 7, INF}
};
Can i define a copy constructor of that object?
using Matrix_t = std::vector<std::vector<double>>;
class Matrix{
public:
Matrix(const Matrix_t& m);
private:
Matrix_t org_matrix;
};