Skip to content

Prevent over instantiation of opeqvs - #4720

Merged
ajpotts merged 3 commits into
Bears-R-Us:masterfrom
jabraham17:remove-unused-opeqvs
Jul 24, 2025
Merged

ajpotts merged 3 commits into
Bears-R-Us:masterfrom
jabraham17:remove-unused-opeqvs

Conversation

@jabraham17

@jabraham17 jabraham17 commented Jul 17, 2025 •

Copy link
Copy Markdown
Contributor

Since pdarray.opeq enforces that the dtype of a scalar must match the dtype of the vector, this PR makes similar changes to the server to enforce that. This eliminates ~20 instantiations of opeqvs

Future work: given that pdarray.opeq/opeqvs outlaws vector op= scalar, can pdarray._binop/pdarray._r_binop/binopsv/binopvs do the same?

@jabraham17
jabraham17 marked this pull request as ready for review July 17, 2025 19:51

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Jul 24, 2025
Merged via the queue into Bears-R-Us:master with commit 06dd9a9 Jul 24, 2025
ajpotts pushed a commit that referenced this pull request Jul 25, 2025
Since pdarray.opeq enforces that the dtype of a scalar must match the
dtype of the vector, this PR makes similar changes to the server to
enforce that. This eliminates ~20 instantiations of `opeqvs`

Future work: given that `pdarray.opeq`/`opeqvs` outlaws `vector op=
scalar`, can `pdarray._binop`/`pdarray._r_binop`/`binopsv`/`binopvs` do
the same?

---------

Signed-off-by: Jade Abraham <[email protected]>
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.

5 participants