-
Notifications
You must be signed in to change notification settings - Fork 46
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
SF#411 relax reshape() constraints #217
Comments
To capture on here @drzowie's expansion on this:
And:
|
A / the solution to this problem would be to make a new |
@devel-chm writes:
To avoid a bug in the reshape() routine, it no longer will operate on a PDL with data flow active. This avoids an interaction between reshape() and its dimension mangling and mv() which can re-order dimensions in such a way that the reshape() implementation ends up indexing out of the piddle data. This was motivated by the fact that reshape() is mainly for turning a contiguous block of data into an equivalent multidimensional piddle and so applying it to a piddle with scrambled axis orders doesn't really make sense.
However, many uses of reshape() are essentially shorthand for a sequence of splitdim() operations and it would be nice if this were allowed. I'm opening this ticket as a reminder to address this following the coming PDL-2.015 release. As always, feedback and suggestions on bug fixes are welcome.
https://sourceforge.net/p/pdl/bugs/411/
The text was updated successfully, but these errors were encountered: