title: Passing 2D array through the class in C++
body: <p>I would like to create a 2D array of floats, pass it through a certain class, which changes the elements of the array in one of its functions and returns this array back. Importantly, I do not want to create a copy of my array inside the class. What is the best way to do that? I read that people suggest using big 1D array instead of 2D, some people recommend using vectors. That is the most effective (in terms of time) method to do it?</p>