Tullio.jl
Tullio.jl copied to clipboard
Method error when broadcast and sum of matrices
I want to broadcast a vector of matrix, with summation inside. Here are codes:
julia> using Tullio
julia> x=range(start=-1,length=10,stop=1);
julia> e=rand(10);
julia> @tullio _[n]:=inv([x[n] -1.0;-1.0 x[n]-e[k]]);
ERROR: MethodError: no method matching zero(::Type{Matrix{Float64}})
How could I solve this?