Add conversions for Simd from/to arrays of types convertible from/to Simd#461
Add conversions for Simd from/to arrays of types convertible from/to Simd#461programmerjake wants to merge 3 commits intorust-lang:masterfrom
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