Consider the statement:
a = [1 2 3 4 ]
and its transpose a'
, which generates a column vector.
Now do the same with strings:
b = ["a" "b" "c"]
and transpose it. I get the following error (which is very hard to believe, since ["a"; "b"; "c"]
works perfectly well.). I cannot transpose an array of symbols either.
b'
Error showing value of type LinearAlgebra.Adjoint{Union{},Array{String,2}}:
ERROR: MethodError: no method matching adjoint(::String)
Closest candidates are:
adjoint(::Missing) at missing.jl:100
adjoint(::LightGraphs.DefaultDistance) at /Users/erlebach/.julia/packages/LightGraphs/siFgP/src/distance.jl:22
adjoint(::Number) at number.jl:169
...
Stacktrace:
[1] getindex at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/LinearAlgebra/src/adjtrans.jl:178 [inlined]
[2] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::LinearAlgebra.Adjoint{Union{},Array{String,2}}; max_swatches::Int64) at /Users/erlebach/.julia/packages/Colors/P2rUx/src/display.jl:122
[3] show at /Users/erlebach/.julia/packages/Colors/P2rUx/src/display.jl:91 [inlined]
[4] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::String, ::LinearAlgebra.Adjoint{Union{},Array{String,2}}) at ./multimedia.jl:109
[5] displayinplotpane(::LinearAlgebra.Adjoint{Union{},Array{String,2}}) at /Users/erlebach/.julia/packages/Atom/9h5Up/src/display/showdisplay.jl:67
[6] display(::Atom.JunoDisplay, ::LinearAlgebra.Adjoint{Union{},Array{String,2}}) at /Users/erlebach/.julia/packages/Atom/9h5Up/src/display/showdisplay.jl:118
[7] display(::Any) at ./multimedia.jl:323
[8] #invokelatest#1 at ./essentials.jl:712 [inlined]
[9] invokelatest at ./essentials.jl:711 [inlined]
[10] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:161
[11] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:146
[12] (::REPL.var"#do_respond#38"{Bool,Atom.var"#250#251",REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:729
[13] #invokelatest#1 at ./essentials.jl:712 [inlined]
[14] invokelatest at ./essentials.jl:711 [inlined]
[15] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2354
[16] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:1055
[17] run_repl(::REPL.AbstractREPL, ::Any) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:206
[18] (::Base.var"#764#766"{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:383
[19] #invokelatest#1 at ./essentials.jl:712 [inlined]
[20] invokelatest at ./essentials.jl:711 [inlined]
[21] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:367
[22] exec_options(::Base.JLOptions) at ./client.jl:305
[23] _start() at ./client.jl:484