You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low prio until we get an actually implementation that supports the copy kwarg properly in asarray(), let alone reshape(). A util should be created to refactor what was already done for test_asarray_arrays:
I'm implementing this in the numpy_array_api_compat library. A real test would be nice. It shouldn't be difficult to do. If the new shape is different, just check that the returned array has a different shape. If it's the same, we can do a check similar to the one in test_asarray. The None case cannot be tested because it depends on implementation details (like if the underlying library uses strides/views).
Activity
[-]Test `copy` arg in `reshape()`[/-][+]Test new `copy` arg in `test_reshape`[/+]asmeurer commentedon Oct 6, 2022
I'm implementing this in the numpy_array_api_compat library. A real test would be nice. It shouldn't be difficult to do. If the new shape is different, just check that the returned array has a different shape. If it's the same, we can do a check similar to the one in test_asarray. The None case cannot be tested because it depends on implementation details (like if the underlying library uses strides/views).