| 
			 	
Prev: OpenCL and MATLAB 
		Next: colour map from image 	
		 From: A B on 12 Aug 2010 10:21 Hi, usually I use sparse2 to create sparse matrices, as it is said to be faster (see Loren's blog). However I now have a problem where I am repeatedly (few hundred times) creating sparse diagonal matrices and sparse is 2-3x faster than sparse2. spdiags is the slowest solution. I wondered if there is a rational explanation behind the behavior, so I can understand and use the commands better. Thanks 
		  | 
 
		Pages: 1 Prev: OpenCL and MATLAB Next: colour map from image  |