| 3052 | } |
| 3053 | |
| 3054 | array cosh(const array& a, StreamOrDevice s /* = {} */) { |
| 3055 | auto dtype = at_least_float(a.dtype()); |
| 3056 | auto input = astype(a, dtype, s); |
| 3057 | return array(a.shape(), dtype, std::make_shared<Cosh>(to_stream(s)), {input}); |
| 3058 | } |
| 3059 | |
| 3060 | array tanh(const array& a, StreamOrDevice s /* = {} */) { |
| 3061 | auto dtype = at_least_float(a.dtype()); |
no test coverage detected