Hi there,
I am looking forward to your help for comparing matrix in
C++
I want to find common elements between 2 or more different
matrices,using C++
for eg:
A= [1 1 4 4
1 2 3 4
2 4 3 3
2 2 3 3 ]
B= [ 1 1 4 4
1 1 4 4
2 2 3 3
2 2 3 3]
then resultant matrix should display
C= [ 1 1 4 4
1 0 0 4
2 0 3 3
2 2 3 3]
( here the resultant matrix contains the common element in place of
common element, and it contains 0 in place of uncommon element)
I also want to extend this for comparing more than 2 matrices
simultaneously
Please post/email your views
thanks
Nishant
ni*******@rediffmail.com