Hello!

I am currently working on some code that uses the TensorOperations.jl 
package. In particular, I am using the LabelList type which is defined as 
follows

immutable LabelList <: AbstractArray{Symbol,1}
     labels::Vector{Symbol}
end

LabelList(s::String)=LabelList(map(symbol,map(strip,split(s,','))))

macro l_str(s)
  LabelList(s)
end

I am getting errors if I try to work with vectors of LabelLists:

julia> [l"i,j",l"j,i"]
ERROR: `similar` has no method matching similar(::LabelList, 
::Type{Symbol}, ::(Int64,))

Interestingly, the following seems to work fine

julia> [l"i,j" l"j,i"]
2x2 Array{Symbol,2}:
 :i  :j
 :j  :i
 
 What is happening and how do I fix this?
 
 Thanks in advance!
 
 Jean

Reply via email to