The output format isn't intended to be valid input format in either version
of Julia, e.g. on 0.4:
julia> 2x3
ERROR: UndefVarError: x3 not defined
in eval(::Module, ::Any) at ./boot.jl:234
in macro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46
On Thu, Jul 21, 2016 at 12:45 PM, daycaster wrote:
> (I'm just untangling some confusion on my end. Is the following correct?)
>
> In 0.4, array dimensions were printed like this:
>
> julia> zeros(2,3)
> 2x3 Array{Float64,2}:
> 0.0 0.0 0.0
> 0.0 0.0 0.0
>
> In 0.5, the "x" is replaced with a "×":
>
> julia> zeros(2,3)
> 2×3 Array{Float64,2}:
> 0.0 0.0 0.0
> 0.0 0.0 0.0
>
> but apparently this character isn't a multiplication, but the
> cross-product operator:
>
> julia> 2×3 # copy/paste from above
> ERROR: MethodError: no method matching cross(::Int64, ::Int64)
> in eval(::Module, ::Any) at ./boot.jl:234
> in macro expansion at ./REPL.jl:92 [inlined]
> in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46
>
> But to get this character you type `\times`, although 'times' is
> (according to
> http://docs.julialang.org/en/release-0.4/manual/mathematical-operations/)
> the name for "*", but this is the symbol for the `cross()` function...
>
> So wouldn't it be more logical to report the size of arrays using "by"?
>
> julia> zeros(2,3)
> 2 by 3 Array{Float64,2}:
> 0.0 0.0 0.0
> 0.0 0.0 0.0
>
>