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

Compute with a primitive trait #191

Merged
merged 9 commits into from
Apr 4, 2024
Merged

Compute with a primitive trait #191

merged 9 commits into from
Apr 4, 2024

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Apr 3, 2024

Seems to work out ok to implement compute over &dyn PrimitiveTrait<T>. Notice that we need to parameterise the trait to ensure that we don't have a typed_data<T> function with generics.

I'm wondering if it might make more sense to do this:

  • PrimitiveArray -> PrimitiveData
  • PrimitiveTrait -> PrimitiveArray
  • Remove Array trait from PrimitiveArray and PrimitiveView, and only implement it for &dyn PrimitiveTrait?

@gatesn gatesn requested a review from robert3005 April 3, 2024 21:04
@gatesn gatesn marked this pull request as draft April 4, 2024 08:25
@gatesn gatesn marked this pull request as ready for review April 4, 2024 10:29
@gatesn gatesn enabled auto-merge (squash) April 4, 2024 10:53
robert3005 and others added 2 commits April 4, 2024 12:58
@gatesn gatesn merged commit 85f79ad into develop Apr 4, 2024
2 checks passed
@gatesn gatesn deleted the ngates/primitive-trait branch April 4, 2024 12:04
@gatesn gatesn restored the ngates/primitive-trait branch April 4, 2024 12:37
@gatesn gatesn deleted the ngates/primitive-trait branch April 4, 2024 12:37
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