From e7d7ac0fd8b81c1d6fae9ab7c1e4654133c631ea Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 21 Oct 2024 23:20:57 +0200 Subject: Tests --- src/ForwardAD/DualNumbers.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ForwardAD') diff --git a/src/ForwardAD/DualNumbers.hs b/src/ForwardAD/DualNumbers.hs index f9239e9..3e45ce7 100644 --- a/src/ForwardAD/DualNumbers.hs +++ b/src/ForwardAD/DualNumbers.hs @@ -100,6 +100,8 @@ dop = \case (EOp ext (OEq t)) ONot -> EOp ext ONot OIf -> EOp ext OIf + ORound64 -> \arg -> EOp ext ORound64 (EFst ext arg) + OToFl64 -> \arg -> EPair ext (EOp ext OToFl64 arg) (EConst ext STF64 0.0) where add :: ScalIsNumeric t ~ True => SScalTy t -> Ex env' (TScal t) -> Ex env' (TScal t) -> Ex env' (TScal t) -- cgit v1.2.3-70-g09d2