mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
feat(const_eval): impl. atanh
This commit is contained in:
1 parent
262c07f40c
commit
c2f110ed0c
2 files changed
+4
No files matched your search
@@ -49,6 +49,7 @@ Bottom level categories:
|
||||
- `asin`
|
||||
- `asinh`
|
||||
- `atan`
|
||||
- `atanh`
|
||||
- `cos`
|
||||
- `cosh`
|
||||
- `round`
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user