| Using the C++ Math Library | ![]() |
Converting a Sparse Matrix to Full Matrix Format
You can convert a sparse matrix to a full format matrix by using the full() routine. The previous example nested a call to this routine in output to show the pattern created by the values in the sparse matrix:
cout << full(S) << endl; // print full matrix
| Creating a Sparse Matrix | Evaluating Arrays for Sparse Storage | ![]() |