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 }}
dpt.astype returns wrong result on boolean view of numpy.ndarray #2121
To implement NumPy's behavior in C++ one needs to always work with bool by reference (otherwise a copy is made standardizing the underlying bit-set), bit-cast bool to std::uint8_t and convert as needed.
Activity
fix gh-2121
add a test for gh-2121 resolution
Merge pull request #2122 from IntelPython/resolve-gh-2121
Enable muted test since dpctl-2121 is resolved (#2527)
Enable muted test since dpctl-2121 is resolved (#2527)
sycloid commentedon Sep 26, 2025
@ndgrigorian @antonwolfy
Notice that C++ also disagrees with NumPy here:
To implement NumPy's behavior in C++ one needs to always work with bool by reference (otherwise a copy is made standardizing the underlying bit-set), bit-cast
booltostd::uint8_tand convert as needed.Fix IntelPythongh-2121 in convert_impl function
Revert IntelPythongh-2122 since IntelPythongh-2121 was fixed in conve…
Fix IntelPythongh-2121 in convert_impl function
Revert IntelPythongh-2122 since IntelPythongh-2121 was fixed in conve…