I would like
julia> [1; 0]' * [1 0; 0 2] * [1; 0]
1
to return a 1x1 Matrix
. Is there a more convenient syntax than
julia> Matrix(transpose([1; 0])) * [1 0; 0 2] * [1; 0]
1-element Vector{Int64}:
1
which still does not return a Matrix
but a Vector
.
Ref: Matrix multiplication with transpose · Issue #512 · JuliaPy/SymPy.jl · GitHub