Hello there,
I have a struct of matrix that is defined like this:
And I have 2 pointers to matrices m1 and m2 and I would like to multiply between them.Code:typedef struct { int rows; int cols; int *mat; } Matrix;
Now, given the fact that each matrix is saved in a 1-dimensional array, how can I multiply it properly in the result matrix, m3?
Any ideas?
Thanks in advance