We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc8138 commit cf2aa39Copy full SHA for cf2aa39
src/networks.jl
@@ -104,11 +104,11 @@ collect_ixs(ne::EinCode) = [collect(ix) for ix in getixs(ne)]
104
function collect_ixs(ne::NestedEinsum)
105
d = OMEinsum.collect_ixs!(ne, Dict{Int,Vector{OMEinsum.labeltype(ne.eins)}}())
106
ks = sort!(collect(keys(d)))
107
- return [d[i] for i in ks]
+ return @inbounds [d[i] for i in ks]
108
end
109
110
function collect_ixs!(ne::NestedEinsum, d::Dict)
111
- for i=1:length(ne.args)
+ @inbounds for i=1:length(ne.args)
112
if ne.args[i] isa Integer
113
d[ne.args[i]] = collect(OMEinsum.getixs(ne.eins)[i])
114
else
0 commit comments