Skip to content

Use promote_operand of StarAlgebras for the sum with a scalar - #414

Merged
blegat merged 1 commit into
mainfrom
bl/drop_prepare_scalar_sum
Nov 11, 2026
Merged

blegat merged 1 commit into
mainfrom
bl/drop_prepare_scalar_sum

Conversation

@blegat

@blegat blegat commented Nov 11, 2026

Copy link
Copy Markdown
Member

Since StarAlgebras v0.4.5, the element added to a scalar is converted with SA.promote_operand which moves an element of the algebra of a SubBasis to the algebra of its parent basis. The override of the internal SA._prepare_scalar_sum hook doing the same with implicit is therefore not needed anymore.

Since StarAlgebras v0.4.5, the element added to a scalar is converted with
`SA.promote_operand` which moves an element of the algebra of a `SubBasis` to
the algebra of its parent basis. The override of the internal
`SA._prepare_scalar_sum` hook doing the same with `implicit` is therefore not
needed anymore.
@blegat
blegat force-pushed the bl/drop_prepare_scalar_sum branch from a55af65 to cdcab00 Compare November 11, 2026 11:33
@blegat
blegat merged commit 6b2651c into main Nov 11, 2026
7 of 9 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.

1 participant