Skip to content

Fix logic to sequence based indexing in row/col/slice functions #296

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

Merged
merged 1 commit into from
May 8, 2021

Conversation

9prady9
Copy link
Member

@9prady9 9prady9 commented May 8, 2021

Prior to this change, the following functions were not checking for additional
dimensional data beyond the dimension concerned with the particular
function.

  • row
  • col
  • slice
  • rows
  • cols
  • slices
  • set_row
  • set_col
  • slice
  • set_rows
  • set_cols
  • set_slices

Similar logic was missing in one particular matching pattern of view
macro which is also fixed in this change.

Few additional unit tests are added in macro and index module checking
for the pitfalls this change addresses

Fixes #295

Prior to this change, the following functions were not checking for additional
dimensional data beyond the dimension concerned with the particular
function.

- row
- col
- slice
- rows
- cols
- slices
- set_row
- set_col
- slice
- set_rows
- set_cols
- set_slices

Similar logic was missing in one particular matching pattern of view
macro which is also fixed in this change.

Few additional unit tests are added in macro and index module checking
for the pitfalls this change addresses
@9prady9 9prady9 added the Fix label May 8, 2021
@9prady9 9prady9 added this to the 3.8.1 milestone May 8, 2021
@9prady9 9prady9 merged commit a843a93 into arrayfire:master May 8, 2021
@9prady9 9prady9 deleted the fix_row_col_slice_logic branch May 8, 2021 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arrayfire::set_rows fails on bool array? [BUG]
1 participant