Question: Write a program to implement the transpose ( must - do ) , addition ( must - do ) , and multiplication ( optional )
Write a program to implement the transpose mustdo
addition mustdo and multiplication optional
operations of two given sparse matrices. NOTE: use
the advanced triple list as the data structure for storing
sparse matrices.
Input:
First line: input four integers: the row number and the
column number of the two matrices, the NNZ of the
first matrix and the of the second matrix
Then input the triples. Each triple row column value
takes a line. First lines are for the first matrix. The
next lines are for the second matrix.
Output:
The addtion of the two matrices. Each triple takes a line.
Sample InputOutput
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
