Skip to content

Define is_commutative function interface#351

Merged
blegat merged 2 commits into
masterfrom
claude/add-is-commutative-function-OCIwQ
Mar 31, 2026
Merged

Define is_commutative function interface#351
blegat merged 2 commits into
masterfrom
claude/add-is-commutative-function-OCIwQ

Conversation

@blegat

@blegat blegat commented Mar 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Add is_commutative(::Type) to the public API so implementations like DynamicPolynomials.jl can report whether their variable types are commutative
  • Needed by Implement MP.is_commutative DynamicPolynomials.jl#188
  • Includes a guard method on instances that directs users to call it on types instead

Test plan

  • Verify that is_commutative is exported by the module (auto-exported via the existing names loop)
  • Verify that DynamicPolynomials.jl can implement MP.is_commutative methods against this interface

https://claude.ai/code/session_01UFdPE6xGLMLByASjKdDWJa

claude and others added 2 commits March 29, 2026 18:08
Add `is_commutative(::Type)` to the public API so that implementations
like DynamicPolynomials can report whether their variable types are
commutative. This is needed by JuliaAlgebra/DynamicPolynomials.jl#188.

https://claude.ai/code/session_01UFdPE6xGLMLByASjKdDWJa
@blegat blegat merged commit 5a594a6 into master Mar 31, 2026
5 of 8 checks passed
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