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

Define local_geometry_type #1680

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Define local_geometry_type #1680

merged 1 commit into from
Apr 16, 2024

Conversation

charleskawczynski
Copy link
Member

@charleskawczynski charleskawczynski commented Apr 16, 2024

This PR defines, local_geometry_type, which will allow us to migrate from mul_return_type/rmul_return_type to Base.promote_op.

local_geometry_type statically returns the local geometry type, given a space type.

This is a peel off from #1673, in case this may be needed to fix other inference issues (#1679, #1678, #1675).

None of this is actually being used yet, although I did add tests, because this seems to impact compiler inference, perhaps due to heuristics. I'm still digging into why. I've also defined a new version of Operators.return_eltype, which I hope that we'll use in the long run.

@charleskawczynski charleskawczynski merged commit 8bf9524 into main Apr 16, 2024
15 checks passed
@charleskawczynski charleskawczynski deleted the ck/local_geometry_type branch April 16, 2024 20:19
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