I have to devide a matrix in variable no of matrices with each having variable no of rows. Like I have to devide a matrix with dim.9X19 into say 4 matrices with row nos 1,6,6,6 respectively, and I have to use these matrices in furthur calculations.How can I proceed for this problem? Here array defining should also be dynamic and I am also facing problem in giving array[] names.I am using TC++ compiler.
If anyone has a moment to help me think out of the box, I would be most appreciative. Thanks all.
A 9x19 array as 171 elements. A 1x6x6x6 has 216 elements.
How are you going to divide the 9x19 into a 1x6x6x6???
I can help you if the arrays are the same size.
I think the OP wanted to say 19 rows by 9 columns; chop up the original matrix
in 6x9, 6x9, 6x9 and 1x9 sized 'sub' matrixes. (all on top of each other).
IMHO a 'MatrixView' class given the original matrix (and its dimensions) could
do the job (just overload the operator[]).