How to perform two sparse matrix addition without conversion into normal matrix. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to perform two sparse matrix addition without conversion into normal matrix.

sparse matrix is a matrix which have the no of non - zero element is less than zero element.

3rd Mar 2019, 12:19 PM
Saurabh Sharma
Saurabh Sharma - avatar
1 Answer
0
you are right I am concerned about space.i don't want to store again into normal matrix. we simply add into sparse matrix format. matrix format 0 0 1 6 0 0 7 0 0 0 0 0 1 0 0 2 sparse format row. col. ele 0. 2. 1 0. 3. 6 1. 2. 7 3. 0. 1 3. 3. 2 I want to add into sparse format not want to convert into matrix then add
4th Mar 2019, 5:25 AM
Saurabh Sharma
Saurabh Sharma - avatar