Tullio.jl icon indicating copy to clipboard operation
Tullio.jl copied to clipboard

Method error when broadcast and sum of matrices

Open zxm403089989 opened this issue 1 year ago • 1 comments

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?

zxm403089989 avatar Mar 29 '23 17:03 zxm403089989