-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ivy: unexpected indentation in matrix of vectors #193
Comments
Oh, I see. It is making all columns the same width and right-aligning the data. I'm also unsure about making all columns the same width when the widths are very different. |
There is a lot of judgement involved here. I tried to make the output generally readable, but with large elements of course that's very hard. It's had several iterations. For simple things the alignment is how I remember APL\360 working, but of course that was half a century ago. (Really.) My memory may be faulty, or things may have changed, or other changing things may argue for other tradeoffs. The trick is doing the right thing most of the time, perhaps at the cost of some ugliness in oddball cases. |
Another example to consider in any future tweak of the heuristics. Playing with the game of life from #194, displaying a matrix of boxed matrices could possibly use blank lines between rows of the outer matrix.
|
Reopening because the fix only addresses the last comment. |
I'm not sure what the leading indentation is, but note how it increases with the vector nesting depth.
The text was updated successfully, but these errors were encountered: