Macro nncombinator::derive_arithmetic
source · macro_rules! derive_arithmetic { ( Broadcast<T> > $rt:ty = $ot:ty) => { ... }; ( $lt:ty > Broadcast<T> = $ot:ty) => { ... }; ( $lt:ty > $rt:ty = $ot:ty) => { ... }; ( $lt:ty > $rt:ty = r $clt:ty > r $crt:ty = $ot:ty) => { ... }; }
Expand description
Macros for automatic derivation of the implementation of the four arithmetic operations
Arguments
$lt
- the left hand side type$rt
- the right hand side type$clt
- Converted type of the left-hand side type$crt
- Converted type of the right-hand side type$ot
- output type