Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void matrixSum(int *x, int *y, int *sum, int numRows, int numCols){
- int i,j,offset;
- for(i=0;i<numRows;i++){
- for(j=0;j<numCols;j++){
- offset=i*numCols+j;
- sum[offset]=x[offset]+y[offset];
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement