MATLAB: Multiplication of Sparse complex matrix and a full matrix
sparse
Let A be a sparse matrix and B be a full matrix . C = A.*B. Will multiplication of elements of B corresponding to the zero elements of A be eliminated?
Best Answer
The sparse multiplication will skip multiplying the elements that are known to be 0 in the sparse matrix.
I am not entirely sure what you are asking for. The sparse() command will convert a matrix to sparse form. [The spy() function is only for visualization.] Whether or not the matrix has a block format is not very relevant, because in sparse form, MATLAB stores the locations and values of the non-zero elements, regardless of where they are. (Or maybe I am misunderstanding something in your question.)
Best Answer