Skip to content

Commit

Permalink
Fix inds(::EinExpr)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Mar 11, 2024
1 parent 5e14e8a commit 4397099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EinExpr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Return all the involved indices in `path`. If a tensor is passed, then it is equ
See also: [`head`](@ref).
"""
inds(path::EinExpr{L}) where {L} = mapreduce(parent head, , Leaves(path); init = L[]) |> collect
inds(path::EinExpr{L}) where {L} = mapreduce(head, , Leaves(path); init = L[])

"""
leaves(path::EinExpr[, i])
Expand Down

0 comments on commit 4397099

Please sign in to comment.