-
Notifications
You must be signed in to change notification settings - Fork 88
Add conversions for Simd from/to arrays of types convertible from/to Simd #461
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
base: master
Are you sure you want to change the base?
Add conversions for Simd from/to arrays of types convertible from/to Simd #461
Conversation
So, @calebzulawski @workingjubilee do you think having the conversions be fully generic over anything that implements |
The thing I'm not particularly liking is the dimension change preventing a nice generic implementation. Not that it means we shouldn't implement this, but is this conversion supported by |
yeah, but since generic const exprs isn't coming anytime soon, imo this is the best we can do.
|
This doesn't seem like quite the right solution. |
ok, so then do you have any better ideas, or can you be more specific? imo something like this would be quite useful, so we should have some better way (preferably safe) than just a manual |
Maybe something that uses arrays as an intermediate and relies on optimization (since transmutes don't care about alignment, right?) |
as suggested in https://rust-lang.zulipchat.com/#narrow/channel/257879-project-portable-simd/topic/q2p8affineqb.20and.20double-pumping/near/521157051