I was making a Matrix class and I wanted to override the operator() so I can assign numbers to specific places in my matrix like so:
int a[6] = { 1, 2, 3, 4, 5, 6 }; Matrix2d<int> blah(2, 2, a); blah(2, 2) = 7; What is not working right now is the 3rd line, how can I overload the () operator correctly so it works? (if there's even a way to do it) The matrix contains a 1d array so the value would have to be set at the correct place.