I have class CMatrix, where is \"double pointer\" to array of values.
class CMatrix { public: int rows, cols; int **arr; };
I simpl
If you create a matrix using Standard Library containers, it's trivial:
class Matrix { vector> data; public: vector& operator[] (size_t i) { return data[i]; } };