Hello, I've been trying all day on how to pass a 2D Vector to a function using parameters. I've tried passing by reference but I've been getting the error "type 'const Matrix' does not provide a subscript operator". Below is my code, any help would be appreciated!
I don't know your code, but I assume that you have a private variable double **mat somewhere. Then you need to define double *operator[](size_t i){return mat[i];}