# Revision history [back]

### Displaying matrices with . instead of 0

In GAP it is possible (at least in some circumstances) to display a matrix with . instead of 0 and without brackets. This makes the structure of the matrix much easier to see. Is there a way to do this in Sage?

e.g. to show

   1   3   3   .   9
1   1   1   2   5
1   1   3   2   3
1   3   1   .   3
1   1   1   .   5
1   .   .   1   3
1   1   3   .   3
1   3   1   .   3
1   1   1   .   3
1   3   .   .   .
1   .   1   .   2


[ [  1,  3,  3,  0,  9 ],
[  1,  1,  1,  2,  5 ],
[  1,  1,  3,  2,  3 ],
[  1,  3,  1,  0,  3 ],
[  1,  1,  1,  0,  5 ],
[  1,  0,  0,  1,  3 ],
[  1,  1,  3,  0,  3 ],
[  1,  3,  1,  0,  3 ],
[  1,  1,  1,  0,  3 ],
[  1,  3,  0,  0,  0 ],
[  1,  0,  1,  0,  2 ] ]
 2 retagged Kelvin Li 503 ●5 ●12 ●17

### Displaying matrices with . instead of 0

In GAP it is possible (at least in some circumstances) to display a matrix with . instead of 0 and without brackets. This makes the structure of the matrix much easier to see. Is there a way to do this in Sage?

e.g. to show

   1   3   3   .   9
1   1   1   2   5
1   1   3   2   3
1   3   1   .   3
1   1   1   .   5
1   .   .   1   3
1   1   3   .   3
1   3   1   .   3
1   1   1   .   3
1   3   .   .   .
1   .   1   .   2


[ [  1,  3,  3,  0,  9 ],
[  1,  0,  1,  0,  2 ] ]