Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MyMatrix sum(const MyMatrix&t)
- {
- MyMatrix res(t);
- if((m==t.m)&&(n==t.n))
- {
- for (int i=0; i<m; i++)
- {
- for (int j=0; j<n; j++) res.A[i][j]+=A[i][j];
- }
- }
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement