-
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #29203: character art: line wrapping for matrices
This ticket adds breakpoints to the ASCII and unicode art representations of matrices, so that wide matrices are wrapped in a readable way: {{{ sage: %display unicode_art 80 sage: set_random_seed(0) sage: matrix.random(RDF, 3, 8) ⎛ -0.27440062056807446 0.5031965950979831 -0.001975438590219314 ⎜ -0.35104242112828943 0.5084492941557279 0.19906256610645512 ⎝ -0.20282268041839324 0.0728476884470246 -0.9938082549986424 -0.9467802263760512 0.5056889961514748 -0.05461130074681608 0.3242250183948632 0.6026443545751128 -0.9541798283979341 0.004239223023573491 -0.6670085876677831 -0.635743483594841 -0.033673314214051286 -0.9401270875197381⎞ -0.8948790563276592 -0.5763034867990717⎟ 0.5778937006648461 -0.9007365327499568⎠ }}} Previously, the output was completely scrambled if the matrix was wider than the window size: {{{ ⎛ -0.27440062056807446 0.5031965950979831 -0.001975438590219314 -0.94678022 63760512 0.5056889961514748 -0.05461130074681608 -0.033673314214051286 -0. 9401270875197381⎞ ⎜ -0.35104242112828943 0.5084492941557279 0.19906256610645512 0.32422501 83948632 0.6026443545751128 -0.9541798283979341 -0.8948790563276592 -0. 5763034867990717⎟ ⎝ -0.20282268041839324 0.0728476884470246 -0.9938082549986424 0.0042392230 23573491 -0.6670085876677831 -0.635743483594841 0.5778937006648461 -0. 9007365327499568⎠ }}} URL: https://trac.sagemath.org/29203 Reported by: gh-mwageringel Ticket author(s): Markus Wageringel Reviewer(s): Vincent Delecroix
- Loading branch information
Showing
4 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=configure-VERSION.tar.gz | ||
sha1=5331e588682dfea9308e8308e510d47429500e76 | ||
md5=fe1a9a72f856549d946340703d20d791 | ||
cksum=888161184 | ||
sha1=4c919d52821c13ee1903b2a593b5fddc29f7d74d | ||
md5=6106060e1dbbe881b8983441541bca83 | ||
cksum=2159293899 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
158b93057a44377a3dd8235795317aa0bd412ed9 | ||
3615fd94ca3a0f9000b975d34599b37285d34b2a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters