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
{{ message }}
Repository navigation
astype with 1d array, copy=False and specified order always makes a copy #1926
c_contig=usm_ary.flags.c_contiguous# = True for 1d contiguous arrayf_contig=usm_ary.flags.f_contiguous# Also = **True** for 1d contiguous arrayneeds_copy=copyornotary_dtype==target_dtypeifnotneeds_copyand (order!="K"):
needs_copy= (c_contigandordernotin ["A", "C"]) or ( # = False since c_contig == True and order == "C"f_contigandordernotin ["A", "F"] # = **True** since f_contig == True and order == "C"
)
Activity
Fix lapse in logic of need_copy determination
Add test based on reproducer in gh-1926
Merge pull request #1928 from IntelPython/bugfix/gh-1926-astype