Re: [sympy] economical srepr for SparseMatrix

2013-06-18 Thread Aaron Meurer
Yes, the same for str too. And perhaps even something should be added to the pretty printer to print ellipses if there is a large block of zeros. But first let's merge https://github.com/sympy/sympy/pull/2088 (it's too bad this wasn't merged already; now there are merge conflicts). Aaron Meurer

[sympy] economical srepr for SparseMatrix

2013-06-17 Thread smichr
Is it worth adding a more economical printing of SparseMatrix in printing/repr.py? def _print_Sparse(m): return shortest representation for SparseMatrix o1 = m.shape[0], m.shape[1], m._smat o2 = Matrix(m).tolist() o3 = m.shape[0], m.shape[1], Matrix(m)._mat l1, l2, l3 =