I was trying to make a function which takes a matrix as input and outputs some function of it in C++. But I want it to work on arbitrary size mxn matrix. i.e. I cannot specify in the arguments of the function the values of n (double matrix[][n]) . Because n will be arbitrary.
Is there any way I can pass on an arbitrary mxn 2 dimensional array to a function?
Thanking you in advance.
-indiajoe
I was trying to make a function which takes a matrix as input and
Share
1 Answer