Closed thautwarm closed 2 years ago
I think it's fine when x is a Base.ReinterpretArray
and StrideArray
. Also need to check the type of parent(x)
, make sure it's a Array
would be good.
For now, we support no-copy casting of ReinterpretArray when the condition below is true:
https://github.com/Suzhou-Tongyuan/jnumpy/blob/65cea6cc6a750911ab2c1545d94af26008e7b240/TyPython/src/CPython.Julia.jl#L80