Skip to content

Conversation

@oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Oct 4, 2021

Caught few bugs and fixed them in the process as a perk.

Improved validation for the routine computing strides of
the new reshaped array for a view, or None if view is not possible.

This fixes an exception raised for

```
X = dpt.usm_ndarray((1,), "i4")
X.shape = (1,)  # used to raise, not works as expected
```
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the improve_copy_utils_coverage branch from a13a1fb to 346392e Compare October 4, 2021 22:17
@coveralls
Copy link
Collaborator

coveralls commented Oct 4, 2021

Coverage Status

Coverage increased (+0.2%) to 74.447% when pulling 2315489 on improve_copy_utils_coverage into 42c25df on master.

@oleksandr-pavlyk oleksandr-pavlyk force-pushed the improve_copy_utils_coverage branch from 90d1e90 to 2315489 Compare October 4, 2021 22:58
@oleksandr-pavlyk oleksandr-pavlyk merged commit d469c84 into master Oct 4, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the improve_copy_utils_coverage branch October 4, 2021 23:16
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.

2 participants