MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Sparse matrix indexing speed  shape sensitivity 

Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 27 Aug, 2011 23:30:31 Message: 1 of 18 
I know you're not supposed to build sparse matrices using assignment operations, but I don't think it explains the drastic shape sensitivity that I'm seeing below. Does anyone understand what's happening? 
Subject: Sparse matrix indexing speed  shape sensitivity From: Bruno Luong Date: 28 Aug, 2011 07:24:11 Message: 2 of 18 
The time is even worst for 
Subject: Sparse matrix indexing speed  shape sensitivity From: Bruno Luong Date: 28 Aug, 2011 08:12:10 Message: 3 of 18 
For those who don't know, the SETSPARSE function is from: 
Subject: Sparse matrix indexing speed  shape sensitivity From: Bruno Luong Date: 28 Aug, 2011 10:03:08 Message: 4 of 18 
I did some test and it looks like the sparse assigment command 
Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 28 Aug, 2011 13:18:10 Message: 5 of 18 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <j3cqer$o66$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Bruno Luong Date: 28 Aug, 2011 13:30:28 Message: 6 of 18 
"Matt J" wrote in message <j3df6i$jnq$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 28 Aug, 2011 14:44:11 Message: 7 of 18 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <j3dftj$lkh$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Bruno Luong Date: 28 Aug, 2011 17:20:28 Message: 8 of 18 
"Matt J" wrote in message <j3dk7r$3mp$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 28 Aug, 2011 22:34:11 Message: 9 of 18 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <j3dtcs$rjq$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Loren Shure Date: 29 Aug, 2011 14:30:07 Message: 10 of 18 

Subject: Sparse matrix indexing speed  shape sensitivity From: James Tursa Date: 29 Aug, 2011 14:56:09 Message: 11 of 18 
"Matt J" wrote in message <j3efp3$h5h$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 29 Aug, 2011 15:10:47 Message: 12 of 18 
"James Tursa" wrote in message <j3g9a9$rf1$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Steven_Lord Date: 29 Aug, 2011 15:24:53 Message: 13 of 18 

Subject: Sparse matrix indexing speed  shape sensitivity From: Bruno Luong Date: 29 Aug, 2011 15:33:13 Message: 14 of 18 
"Matt J" wrote in message <j3ga5n$194$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 29 Aug, 2011 19:07:27 Message: 15 of 18 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <j3gbfp$63s$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Paul Fackler Date: 11 Mar, 2013 22:23:05 Message: 16 of 18 
"Matt J" wrote in message <j3go1f$j31$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Matt J Date: 19 Mar, 2013 14:47:10 Message: 17 of 18 
"Paul Fackler" <paulunderscorefackler@ncsudot.edu> wrote in message <khllg9$shn$1@newscl01ah.mathworks.com>... 
Subject: Sparse matrix indexing speed  shape sensitivity From: Paul Fackler Date: 19 Mar, 2013 20:56:05 Message: 18 of 18 
"Matt J" wrote in message <ki9tpe$o80$1@newscl01ah.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.