File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -207,3 +207,44 @@ def _lfortran_sacos(x: f32) -> f32:
207
207
@vectorize
208
208
def arccos (x : f32 ) -> f32 :
209
209
return _lfortran_sacos (x )
210
+
211
+ ########## tanh ##########
212
+
213
+ @ccall
214
+ def _lfortran_dtanh (x : f64 ) -> f64 :
215
+ pass
216
+
217
+ @overload
218
+ @vectorize
219
+ def tanh (x : f64 ) -> f64 :
220
+ return _lfortran_dtanh (x )
221
+
222
+ @ccall
223
+ def _lfortran_stanh (x : f32 ) -> f32 :
224
+ pass
225
+
226
+ @overload
227
+ @vectorize
228
+ def tanh (x : f32 ) -> f32 :
229
+ return _lfortran_stanh (x )
230
+
231
+ ########## exp ##########
232
+
233
+ @ccall
234
+ def _lfortran_dexp (x : f64 ) -> f64 :
235
+ pass
236
+
237
+ @overload
238
+ @vectorize
239
+ def exp (x : f64 ) -> f64 :
240
+ return _lfortran_dexp (x )
241
+
242
+ @ccall
243
+ def _lfortran_sexp (x : f32 ) -> f32 :
244
+ pass
245
+
246
+ @overload
247
+ @vectorize
248
+ def exp (x : f32 ) -> f32 :
249
+ return _lfortran_sexp (x )
250
+
You can’t perform that action at this time.
0 commit comments