-
Notifications
You must be signed in to change notification settings - Fork 27
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
Scalar subtraction #270
Scalar subtraction #270
Conversation
cb94335
to
8f8685a
Compare
b4e0987
to
15644d8
Compare
d89a25f
to
1a53f95
Compare
($self:expr, | $_:tt $enc:ident | $($body:tt)*) => ({ | ||
macro_rules! __with__ {( $_ $enc:ident ) => ( $($body)* )} | ||
use $crate::PType; | ||
use vortex_dtype::half::f16; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might also want/need use half::f16
in case it's not imported in places this macro is used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vortex_dtype::half is effectively a "vendored" version of half. This ensures we use consistent thing everywhere and also makes the implementation somewhat internal. As in, we could replace this for a different f16 crate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhhh, I see, sure
Adds a scalar subtraction compute function for primitive arrays.