Skip to content

Commit

Permalink
When printing matrices, replace zeros by dots
Browse files Browse the repository at this point in the history
This makes it easier to read many matrices, especially those which
are relatively sparse.

Before:

    julia> matrix(QQ, [42 0 0; 0 42 0; 0 0 42])
    [42//1    0//1    0//1]
    [ 0//1   42//1    0//1]
    [ 0//1    0//1   42//1]

After:

    julia> matrix(QQ, [42 0 0; 0 42 0; 0 0 42])
    [42//1       .       .]
    [    .   42//1       .]
    [    .       .   42//1]
  • Loading branch information
fingolfin committed Oct 3, 2023
1 parent b0c592c commit a223242
Show file tree
Hide file tree
Showing 7 changed files with 146 additions and 145 deletions.
Loading

0 comments on commit a223242

Please sign in to comment.