Code covered by the BSD License  

Highlights from
subsref2: often faster than subsref for C=A(i,j) when A is sparse

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 2.08 KB File ID: #22720

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.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
sparse Tim Davis 19 Jan 2009 10:30:37
subsref Tim Davis 19 Jan 2009 10:30:38

Contact us at files@mathworks.com