@@ -1115,7 +1115,6 @@ let () =
11151115 add_unqualified (" distance" , ReturnType UReal , [URowVector ; URowVector ], SoA ) ;
11161116 add_unqualified (" distance" , ReturnType UReal , [UVector ; URowVector ], SoA ) ;
11171117 add_unqualified (" distance" , ReturnType UReal , [URowVector ; UVector ], SoA ) ;
1118- add_unqualified (" divide" , ReturnType UComplex , [UComplex ; UReal ], AoS ) ;
11191118 add_unqualified (" divide" , ReturnType UComplex , [UComplex ; UComplex ], AoS ) ;
11201119 add_unqualified (" divide" , ReturnType UInt , [UInt ; UInt ], SoA ) ;
11211120 add_unqualified (" divide" , ReturnType UReal , [UReal ; UReal ], SoA ) ;
@@ -1668,7 +1667,6 @@ let () =
16681667 (" multinomial_logit_rng" , ReturnType (UArray UInt ), [UVector ; UInt ], AoS ) ;
16691668 add_unqualified
16701669 (" multinomial_rng" , ReturnType (UArray UInt ), [UVector ; UInt ], AoS ) ;
1671- add_unqualified (" multiply" , ReturnType UComplex , [UComplex ; UReal ], AoS ) ;
16721670 add_unqualified (" multiply" , ReturnType UComplex , [UComplex ; UComplex ], AoS ) ;
16731671 add_unqualified (" multiply" , ReturnType UInt , [UInt ; UInt ], SoA ) ;
16741672 add_unqualified (" multiply" , ReturnType UReal , [UReal ; UReal ], SoA ) ;
@@ -2058,15 +2056,8 @@ let () =
20582056 add_unqualified
20592057 (" sub_row" , ReturnType URowVector , [UMatrix ; UInt ; UInt ; UInt ], SoA ) ;
20602058 List. iter
2061- ~f: (fun i ->
2062- add_unqualified
2063- ( " subtract"
2064- , ReturnType (List. nth_exn bare_types i)
2065- , [List. nth_exn bare_types i; List. nth_exn bare_types i]
2066- , SoA ) )
2067- (List. range 0 bare_types_size) ;
2068- add_unqualified (" subtract" , ReturnType UComplex , [UComplex ; UReal ], AoS ) ;
2069- add_unqualified (" subtract" , ReturnType UComplex , [UComplex ; UComplex ], AoS ) ;
2059+ ~f: (fun x -> add_unqualified (" subtract" , ReturnType x, [x; x], SoA ))
2060+ bare_types ;
20702061 add_unqualified (" subtract" , ReturnType UVector , [UVector ; UReal ], SoA ) ;
20712062 add_unqualified (" subtract" , ReturnType URowVector , [URowVector ; UReal ], SoA ) ;
20722063 add_unqualified (" subtract" , ReturnType UMatrix , [UMatrix ; UReal ], SoA ) ;
0 commit comments