Closed songjhaha closed 1 year ago
Should also update flags too
https://github.com/Suzhou-Tongyuan/jnumpy/blob/c426a0728c1f3b7c492a0fa5e2c4959acfdcecca/TyPython/src/CPython.NumPy.jl#L93-L100
If writable flag is False so we should copy the array, the contiguous flag could be wrong if flags are not updated.
Should also update flags too
https://github.com/Suzhou-Tongyuan/jnumpy/blob/c426a0728c1f3b7c492a0fa5e2c4959acfdcecca/TyPython/src/CPython.NumPy.jl#L93-L100