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
Transposing a view throws an expection #651
Comments
Ok, for some reason we try to allocate a shape with extremely large size in this line Looks like subtracting something from a std::size_t. |
On cling, everything seems to be ok until |
I just tested move assign and swap of svector and it seems to work. Will step through it with GDB. |
Ok, the problem is definitly in this line, investigating:
|
Nope, wrong, I think now that the problem is that we're not initializing a stride of |
Ah, well ... I got it now. the problem is that we're returning a computed temporary strides container from We could take strides as a copy, but that doesn't sound like a great solution. Or we could somehow cache the strides in the xview which sounds like a slightly better solution. |
@wolfv I would go for caching the strides in the view, and computes them the first time we need them (as we do for the shape of |
This code
throws an expection:
The expected behavior is to print the following:
I'm using the master branch of xtensor (0872366).
Just to be clear: The intend of my C++ code is to express this NumPy code:
Output of GDB:
The text was updated successfully, but these errors were encountered: