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
@certik Builtin % in LPython doesn't work on arrays by default because it is implemented as a function and not a binop. So the question is which approach to follow,
To make _mod function defined in lpython_builtin.py vectorised;
Define Mod as binop and then use builder->CreateSRem in LLVM backend. Note that not all backends might support modulus operation on types other than integers.
Activity
certik commentedon Aug 30, 2022
If the third approach works, we can go with that I think. Otherwise we can do 1., or 2.