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.
Implement element-wise equality (
eq) forSimpleArrayFollow-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(seecpp/modmesh/buffer/SimpleArray.hpp.Unlike the other element-wise ops,
eqreturns a boolean array regardlessof 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.