| 2829 | } |
| 2830 | |
| 2831 | array reciprocal(const array& a, StreamOrDevice s /* = {} */) { |
| 2832 | auto dtype = at_least_float(a.dtype()); |
| 2833 | return divide(array(1.0f, dtype), a, to_stream(s)); |
| 2834 | } |
| 2835 | |
| 2836 | array add(const array& a, const array& b, StreamOrDevice s /* = {} */) { |
| 2837 | auto out_type = promote_types(a.dtype(), b.dtype()); |
no test coverage detected