`empty_like` ignores memory-order
Open
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 298
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Description
Consider:
```
x = np.random.normal(size=(3, 5)).astype(np.float64, order="F")
x_gpu = gpuarray.to_gpu(x)
y_gpu = gpuarray.empty_like(x_gpu)
x_gpu.flags.c_contiguous == y_gpu.flags.c_contiguous # gives "False"
```
I'm not very familiar with the `ArrayFlags` mechanism. It seems to me that the problem is that `empty_like` doesn't set the `strides` argument of the `GPUArray`-constructor. But I don't know the repercussions of doing this, so I didn't send a PR.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.