S
sj
Hi;
I am writing a c++ code to transform matrix, (a) to (b) using
divide-and-conquer method in four recurrence. I am having difficulty
to merge four submatrices to get the answer. could someone give me a
source code or explain to me how to do it. I am sorry if this is not a
right place to ask.
Thanks
ks
(a)
| 1 1 2 2 |
| 1 1 2 2 |
| 3 3 3 3 | transform to
| 3 3 3 3 |
(b)
| 1 1 2 2 |
| 1 1 0 2 |
| 3 0 0 3 |
| 3 3 3 3 |
I am writing a c++ code to transform matrix, (a) to (b) using
divide-and-conquer method in four recurrence. I am having difficulty
to merge four submatrices to get the answer. could someone give me a
source code or explain to me how to do it. I am sorry if this is not a
right place to ask.
Thanks
ks
(a)
| 1 1 2 2 |
| 1 1 2 2 |
| 3 3 3 3 | transform to
| 3 3 3 3 |
(b)
| 1 1 2 2 |
| 1 1 0 2 |
| 3 0 0 3 |
| 3 3 3 3 |