Formatting Sparse MatricesSparse 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.
|