How to add two sparse matrices stored in 2d arrays??
svcj92 0 Newbie Poster
Recommended Answers
Jump to PostNo idea, you have not given any info of your code or problem.
Jump to PostA sparse matrix has the following appearance:
spmatrix[0][0] = total number of rows in sparse matrix
spmatrix[0][1] = total number of columns in sparse matrix
spmatrix[0][2] = total number of non-zero valuesindex variable must be greater than zero
s[index][0] = row value of non-zero value
s[index][1] = column value …
All 5 Replies
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
svcj92 0 Newbie Poster
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
zeroliken 79 Nearly a Posting Virtuoso
BobS0327 24 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.