Closed m4b closed 2 years ago
I'd love to have it, do you want to do the PR?
This was more of a drive by issue on my part, as I had this minor ergonomic papercut when playing around with some wide types, and figured at least filing my experience was least I could do, so I'm not sure I'd have the time at the moment to contribute a full PR, however.
no worries i can probably get it soon
Fixed in 0.7.4
wow this is super fast turnaround, thanks! Looks great in documentation now, right front and center, thanks for this, I suspect it'll help out a lot of people learning your awesome crate :) https://docs.rs/wide/latest/wide/struct.f32x8.html#method.new
It took me a somewhat embarrassing amount of time to realize that e.g., constructing a
f32x4
wide type from a set of points can use theFrom
impl on[f32; 4]
, e.g., I could not figure out how to implement this:I was looking at the associated methods but found no constructor, or similar function for
f32x4
.Whereas compared to
simba::simd::f32x4
there is anew
method, which is easily visible and seen when exploring documentation (https://docs.rs/simba/latest/simba/simd/struct.Simd.html#method.new-1):I only accidentally saw the
from
impl forwide::f32x4
when browsingsimba::simd::WF32x4
and noticed it somehow had aFrom<[f32;4]
so I knew it must be possible.Anyway, I'm suggesting something like nice convenience function:
so that when users are browsing documentation it's easily visible to see how to construct such a wide vector, (it will appear with methods at top).
Anyway, thanks for the library!