Replies: 4 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.
-
See #592 for a possible implementation. |
Beta Was this translation helpful? Give feedback.
-
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.
-
I brought the above PR in, tweaked nf123 to nfdim, etc. Thanks. The clean-up continues - and I agree the code needs it :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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