Replies: 3 comments 4 replies
-
I am all in favor of this. It's more abstract but shorter and more maintainable. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #592 for a possible implementation. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Martin, How about using a multidimensional span together with this? This way it is possible to allocate the data in one go and reinterpret it as a multidimensions data structure at runtime, data can be 1,2 or 3 dimensional. Thanks, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we have a lot of the following data members in
FINUFFT_PLAN_T
:This gives explicit names to variables referring dimensions 1, 2, 3. I suggest to combine the dimensions in the following way:
The reason is not (only) that this is more compact, but also because it enables many simplifications in the program code.
For example, this current snippet of
setpts
could become something like
There are quite a few locations where this kind of shortening is possible.
Beta Was this translation helpful? Give feedback.
All reactions