Closed michakraus closed 6 months ago
Thanks for the report!!
Thanks a lot for fixing this so quickly. In Julia >1.8 everything works, but there seems to be an issue still with v1.6:
Element type mismatch. Tried to create a `Transpose{SymPyCore.Sym}` from an object with eltype `SymPyCore.Sym`, but the element type of the transpose of an object with eltype `SymPyCore.Sym` must be `Any`.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] checkeltype_transpose(#unused#::Type{SymPyCore.Sym}, #unused#::Type{SymPyCore.Sym})
@ LinearAlgebra /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/LinearAlgebra/src/adjtrans.jl:86
[3] LinearAlgebra.Transpose{SymPyCore.Sym, Vector{SymPyCore.Sym}}(A::Vector{SymPyCore.Sym})
@ LinearAlgebra /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/LinearAlgebra/src/adjtrans.jl:69
[4] transpose(A::Vector{SymPyCore.Sym})
@ SymPyCore ~/.julia/packages/SymPyCore/PayoX/src/matrix.jl:24
This comes from a call like transpose(x)
in the example above.
I am not married to Julia v1.6. I just saw this popping up in the CI workflows and thought you might want to know.
Thanks! I had missed this
The result of transposing a symbolic vector is a
transpose
object with element typeAny
instead ofSym
:For a matrix, on the other hand, the correct result is obtained: