Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Override printed representation of vectors

$
0
0

@ea42gh wrote:

Is there a way to override the print representation of a complex vector?

u=[1   2]; println( "u=$u")
u=[1im 2]; println( "u=$u")

yields

u=[1 2]
u=Complex{Int64}[0 + 1im 2 + 0im]

I want to get rid of the type specification; yes, I could write some code,
but is there some simple way to achieve this?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles