Skip to content

Implement element-wise equality (eq) for SimpleArray #810

@yungyuc

Description

@yungyuc

Implement element-wise equality (eq) for SimpleArray

Follow-up to #588 (matrix operations roadmap).

Element-wise equality is one remaining element-wise op that has not landed, while the add/sub/mul/div family has both array-array and array-scalar overloads in
SimpleArrayMixinCalculators (see cpp/modmesh/buffer/SimpleArray.hpp.

Unlike the other element-wise ops, eq returns a boolean array regardless
of the source dtype.

The element-wise function should be wrapped to Python but should not use the __eq__() special method name right now. The binding to Python operators is future work. New tests should be added adjacent to where other element-wise operations.

Metadata

Metadata

Assignees

Labels

arrayMulti-dimensional array implementation
No fields configured for Feature.

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions