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

Impl std::num_traits::{One, Zero} for Scalar types #648

Open
Pythoner6 opened this issue Apr 7, 2024 · 0 comments
Open

Impl std::num_traits::{One, Zero} for Scalar types #648

Pythoner6 opened this issue Apr 7, 2024 · 0 comments

Comments

@Pythoner6
Copy link

I'm currently trying to use the ristretto Scalar type with nalgebra, but cannot do matrix multiplications, because nalgebra requires the type to implement One and Zero for that. Since we have Scalar::ONE and Scalar::ZERO already, it seems reasonable that maybe Scalar should implement the rust std traits for it (and I suppose maybe also std::num_traits::{ConstOne, ConstZero} too).

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

1 participant