Skip to content

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