Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could you make it work for * like it does for + and - ? #21

Open
Lincoln-Hannah opened this issue Aug 4, 2022 · 1 comment
Open

could you make it work for * like it does for + and - ? #21

Lincoln-Hannah opened this issue Aug 4, 2022 · 1 comment

Comments

@Lincoln-Hannah
Copy link

No description provided.

@Gnimuc
Copy link
Member

Gnimuc commented Oct 21, 2022

For the sake of completeness, we can also add support for other arithmetic operators:

-a
 a * b
 a / b
 a % b

But I'm doubting whether these operators are useful in practice.

At the moment, we only support 3 kinds of operators:

  • Identity operator: ==
  • Bitmasking operators: &, |, xor, ~
  • + and -: These two operators are necessary because Julia is 1-indexed and we need a lot of +1/-1 to access C's 0-indexed containers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants