Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite constructbraidingtensor preprocessor #95

Merged
merged 5 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HalfIntegers = "1"
LRUCache = "1.0.2"
PackageExtensionCompat = "1"
Strided = "2"
TensorOperations = "4.0.6 - 4.0.7"
TensorOperations = "4.1"
TupleTools = "1.1"
VectorInterface = "0.4"
WignerSymbols = "1,2"
Expand Down
4 changes: 4 additions & 0 deletions src/planar/analyzers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
end
end
return inds
elseif isexpr(ex, :call) && ex.args[1] == :/
return get_possible_planar_indices(ex.args[2])
elseif isexpr(ex, :call) && ex.args[1] == :\
return get_possible_planar_indices(ex.args[3])

Check warning on line 42 in src/planar/analyzers.jl

View check run for this annotation

Codecov / codecov/patch

src/planar/analyzers.jl#L41-L42

Added lines #L41 - L42 were not covered by tests
else
return Any[]
end
Expand Down
2 changes: 1 addition & 1 deletion src/planar/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function _plansor(expr, kwargs...)

tparser = TO.tensorparser(expr, kwargs...)
pparser = planarparser(expr, kwargs...)
insert!(tparser.preprocessors, 5, _remove_braidingtensors)
insert!(tparser.preprocessors, 4, _remove_braidingtensors)
tensorex = tparser(expr)
planarex = pparser(expr)

Expand Down
Loading