feat(const_eval): impl. exp2

This commit is contained in:
Erich Gubler authored and Teodor Tanasoaia committed 2024-01-30 10:53:03 +01:00
1 parent 0f8adae123
commit 7b274fc161
2 files changed
+4

No files matched your search

+3
View File
@@ -910,6 +910,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Exp => {
component_wise_float!(self, span, [arg], |e| { Ok([e.exp()]) })
}
crate::MathFunction::Exp2 => {
component_wise_float!(self, span, [arg], |e| { Ok([e.exp2()]) })
}
crate::MathFunction::Floor => {
component_wise_float!(self, span, [arg], |e| { Ok([e.floor()]) })
}