Mathematica.jl icon indicating copy to clipboard operation
Mathematica.jl copied to clipboard

ToString() fails on multi-dimensional arrays

Open dgenin opened this issue 8 years ago • 0 comments

julia> ToString([1 2; 3 4])
WARNING: Error occured in meval: you may need to restart Julia/MathLink 
ERROR: MethodError: no method matching to_mma(::Array{Int64,2})
Closest candidates are:
  to_mma(::Bool) at /Users/genindi1/.julia/v0.5/MathLink/src/types.jl:65
  to_mma(::QuoteNode) at /Users/genindi1/.julia/v0.5/MathLink/src/types.jl:59
  to_mma(::Expr) at /Users/genindi1/.julia/v0.5/MathLink/src/types.jl:44
  ...
 in map(::MathLink.#to_mma, ::Array{Any,1}) at ./essentials.jl:124
 in to_mma(::Expr) at /Users/genindi1/.julia/v0.5/MathLink/src/types.jl:46
 in meval(::Ptr{Void}, ::Expr, ::Type{T}) at /Users/genindi1/.julia/v0.5/MathLink/src/MathLink.jl:96
 in ToString(::Array{Int64,2}, ::Vararg{Array{Int64,2},N}) at /Users/genindi1/.julia/v0.5/MathLink/src/MathLink.jl:41

dgenin avatar Oct 17 '17 20:10 dgenin