how to addres sparse matrix n*n dimension when stored in a single dimensional array.
sydsine
0
Newbie Poster
Recommended Answers
Jump to PostGiven an array
a[M][N]
,a[i][j]
is logically equivalent toa[i * N + j]
if the dimensions are stored in sequence.
Jump to Postno
How is what I said wrong?
when the sparse matrix is converted to single dimension...
If you knew the answer, why did you waste our time in asking? By the way, your original question didn't mention converting a sparse matrix to a single dimensional array. If you had asked …
All 6 Replies
Narue
5,707
Bad Cop
Team Colleague
sydsine
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
sydsine
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
sydsine
0
Newbie Poster
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.