| 3058 | } |
| 3059 | |
| 3060 | array tanh(const array& a, StreamOrDevice s /* = {} */) { |
| 3061 | auto dtype = at_least_float(a.dtype()); |
| 3062 | auto input = astype(a, dtype, s); |
| 3063 | return array(a.shape(), dtype, std::make_shared<Tanh>(to_stream(s)), {input}); |
| 3064 | } |
| 3065 | |
| 3066 | array arcsinh(const array& a, StreamOrDevice s /* = {} */) { |
| 3067 | auto dtype = at_least_float(a.dtype()); |
no test coverage detected