julia> v = ["foo", "bar"]
2-element Vector{String}:
"foo"
"bar"
julia> v'
1×2 adjoint(::Vector{String}) with eltype Union{}:
Error showing value of type LinearAlgebra.Adjoint{Union{}, Vector{String}}:
ERROR: MethodError: no method matching adjoint(::String)
Closest candidates are:
adjoint(::SuiteSparse.CHOLMOD.FactorComponent{Tv, :L}) where Tv at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/SuiteSparse/src/cholmod.jl:1175
adjoint(::SuiteSparse.CHOLMOD.FactorComponent{Tv, :U}) where Tv at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/SuiteSparse/src/cholmod.jl:1176
adjoint(::SuiteSparse.CHOLMOD.FactorComponent{Tv, :PtL}) where Tv at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/SuiteSparse/src/cholmod.jl:1177
...
Stacktrace:
Type piracy? :-)
https://discourse.julialang.org/t/transpose-of-an-array-of-strings/40431
Depending on task, you can either use permutedims
or add transpose
for strings.
Last updated: Dec 28 2024 at 04:38 UTC