Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Formatting Sparse Matrices

Sparse matrices can be formatted with the function MatrixForm.

In[1]:= 

Out[2]//MatrixForm=

MatrixForm also works for vectors and higher rank sparse arrays; the braces can help in understanding the grouping.

In[3]:= 

Out[3]//MatrixForm=

The view that you get from MatrixForm is dense, which can help you see the sparsity pattern. However, it can quickly lead to very large output, especially as the rank of the array increases.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: