Skip to content
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

Fix recognition of non-contigous input data #124

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

mhvk
Copy link
Contributor

@mhvk mhvk commented Oct 19, 2023

Fixes #123

cc @avalentino since you just looked at something...

@mhvk mhvk requested a review from avalentino October 19, 2023 17:46
@@ -144,7 +144,7 @@ static inline void copy_to_eraLDBODY(char *ptr, npy_intp s, npy_intp n,
note: one can only have 1 or 2 dimensions */ #}
{%- if arg.ndim == 2 %}
int copy_{{ arg_name
}} = (is_{{ arg_name }}1 != sizeof({{ arg.ctype }}) &&
Copy link
Contributor Author

@mhvk mhvk Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course rather silly to insist that non-contiguous means that both strides should be bad -- either stride clearly is what is needed. Sigh.

@mhvk mhvk mentioned this pull request Oct 19, 2023
Copy link
Member

@avalentino avalentino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@avalentino
Copy link
Member

Thanks @mhvk

@mhvk mhvk merged commit abd7aca into liberfa:master Oct 19, 2023
@mhvk mhvk deleted the fix-non-contiguous-double33 branch October 19, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: rxp does not work correctly if given slice as matrix
2 participants