feat(const_eval): impl. atanh

This commit is contained in:
Erich Gubler committed 2024-01-18 16:57:46 -05:00
1 parent 262c07f40c
commit c2f110ed0c
2 files changed
+4

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ Bottom level categories:
- `asin`
- `asinh`
- `atan`
- `atanh`
- `cos`
- `cosh`
- `round`
+3
View File
@@ -834,6 +834,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Atan => {
component_wise_float!(self, span, [arg], |e| { Ok([e.atan()]) })
}
crate::MathFunction::Atanh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.atanh()]) })
}
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
crate::MathFunction::Clamp => {
component_wise_scalar!(