Skip to content

np.logical_xor.accumulate fails on 1.24 on mac #22841

@knutdrand

Description

@knutdrand

Describe the issue:

.Accumulate on logical_xor gives wrong result on newest version. I suspect the same for bitwise_xor.

Reproduce the code example:

import numpy as np

a = np.array([False, False,  True, False, False, False, False,  True, False, False,  True, False, False,  True, False, False, False, False, False, False])
np.logical_xor.accumulate(a)
array([False, False,  True,  True, False, False, False,  True,  True,
       False,  True,  True, False,  True,  True, False, False, False,
       False, False])
# Should be [False, False,  True,  True, True, True, True, False,,,,]

Error message:

No response

NumPy/Python version information:

numpy=1.24
python 3.8,
mac version 12.5.1

Context for the issue:

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions