LutzGross / esys-escript.github.io

Other
29 stars 13 forks source link

Relational operators for Data objects #31

Open aellery opened 2 years ago

aellery commented 2 years ago

It would be useful to have relational operators for escript Data objects such as "greater than" and "less than" as this would make the code much easier to read. I.e. so that the user does not have to type wherePositive and whereNegative out in full.

Ideally, these operators should allow the comparison of Data objects. For example, so that a user could type X>Y instead of wherePositive(X-Y).