tricky FUNCTION CALL

I am trying to build an passing array for row major order.

The client file has function call like this

Matrix a(3, 4, (matrixData[]) {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12});

As you see matrixData[]{1,2,3 .....}

I do not know how to pass THAT value to function in my implementation file

Function definition is

Matrix::Matrix(int row_input, int column_input, matrixData[])

Please help me to pass those values row major order

Thank you
You have a matrix
1 5 9
2 6 10
3 7 11
4 8 12
in column major order float matrixData[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
and you want to convert it to row major?

well, row major representation is the transpose of a column major representation.
Topic archived. No new replies allowed.