subsref2: often faster than subsref for C=A(i,j) when A is sparse
by Tim Davis
19 Jan 2009
subsref2 is a replacement for subsref, performing the computation C=A(i,j).
|
Watch this File
|
| File Information |
| Description |
subsref2 uses sparse matrix multiplication to compute C=A(i,j). It uses the following method. Let I and J be identity matrices of the right size so that I*A*J is equal to A. Then C = I(i,:)*A*J(:,j) is the same as C=A(i,j). |
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com