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

Change Scalarization behavior of dot-products, fix issue #459 #812

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

manuelbb-upb
Copy link
Contributor

@manuelbb-upb manuelbb-upb commented Jan 4, 2023

Dot-products seem to be handled incorrectly: #459
From my understanding, this is not merely a displaying error:
The old return Term{S}(*, [A, b]) in _matvec(A,B) would become an incorrect SymbolicUtils Mul construct when scalarize is called.

In this fix, I handle dot-products like any matrix-vector product. If isdot(A,b)==true, I return the indexed result, so that it behaves like a scalar when wraped.

@manuelbb-upb manuelbb-upb changed the title Change Scalarization behavior of dot-products, fix https://github.com/JuliaSymbolics/Symbolics.jl/issues/459 Change Scalarization behavior of dot-products, fix issue #459 Jan 4, 2023
@shashi shashi merged commit d3bbe4d into JuliaSymbolics:master Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants