Skip to content
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

output of eig() is formatted in a non-obvious way #135

Closed
StefanKarpinski opened this issue Jul 19, 2011 · 2 comments
Closed

output of eig() is formatted in a non-obvious way #135

StefanKarpinski opened this issue Jul 19, 2011 · 2 comments
Assignees

Comments

@StefanKarpinski
Copy link
Member

@HomerReid wrote:

output of eig() is formatted in a non-obvious way

 julia> eig([1.0 2.0; 2.0 1.0])
 (-1.0 0.0 
 0.0 3.0 ,-0.70710678118654746 0.70710678118654746 
 0.70710678118654746 0.70710678118654746 )

This is related to #25 and #29, but should be put down specifically because it's something people are likely to notice fast.

@ghost ghost assigned StefanKarpinski Jul 19, 2011
@JeffBezanson
Copy link
Member

Here's an idea: have an ismultiline(x) predicate that tries to tell you whether printing x is likely to take multiple lines. Then printing aggregates like tuples can insert line breaks before big things.

Maybe we should add a header line to printed arrays like "2x2 Float64 Array". Or at least use that format for printing empty arrays.

@ViralBShah
Copy link
Member

We actually need to review our entire printing stuff, keeping the web repl in mind. There are a number of other printing enhancements that are required.

It seems that we may want an intermediate presentation layer, which can be adapted to different UIs.

JeffBezanson added a commit that referenced this issue Aug 12, 2011
  fixes issue #135
truncating output for N-d arrays, fixes issue #111
adding summary line to array printing
adding showall() for N-d
better summaries for 0-d and 1-d arrays
KristofferC pushed a commit to KristofferC/julia that referenced this issue Feb 18, 2018
slugs: use Base's SHA1 and version_slug
cmcaine pushed a commit to cmcaine/julia that referenced this issue Sep 24, 2020
* rational-numbers: Add testsuite

* Add example solution

* Add config.json entry and notebook

* Undo debug change
Keno pushed a commit that referenced this issue Oct 9, 2023
Enclose signatures_at in try/catch (fixes #132)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants