-
Notifications
You must be signed in to change notification settings - Fork 139
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
add Vector (a,b) -> (Vector a, Vector b) et al to Unboxed Vector and MVector #63
Comments
https://github.com/wellposed/numerical/blob/d133ff5d982c5e83e711e1f364678a5455fe9b2b/src/Numerical/Array/Shape.hs#L481-L527 or just export the constructors, because its totally type safe |
If there is any concern about exporting the constructors, there should at least be zero-copy versions of these functions. |
Looking at how the unboxed tuples instances are defined, I think these have to be zero copy helper functions eg
|
and I guess in the tuple of (Vector a, Vector b) -> Vector (a,b) direction, they need to validate that the lenghts are the same |
This issue should probably be closed. |
We also need the same for |
It would be great if there was a way to expose the underlying "structure of arrays". It might be too much to ask for though. See ekmett/linear#61 |
@yongqli i have something like that in my numerical repo |
I personally would have no problem with exporting the constructors from somewhere. |
Constructors for unboxed vectors have been exported from |
I'd like this for Unboxed Vectors and MVector
roughly
should do this for
(,)
...(,,,)
andComplex
at leastThe text was updated successfully, but these errors were encountered: