summaryrefslogtreecommitdiff
path: root/src/AST.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-11-10 10:04:27 +0100
committerTom Smeding <tom@tomsmeding.com>2024-11-10 10:04:27 +0100
commit42d59947356ab51e5a4070b930f02f4909208d35 (patch)
tree3c8afab888e61c4e3157a257f0a40ae2fd4eb9c1 /src/AST.hs
parent33e0ed21603cbd85d6aba6548811db27480647db (diff)
Complete GMM implementation
Diffstat (limited to 'src/AST.hs')
-rw-r--r--src/AST.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/AST.hs b/src/AST.hs
index 263b806..e7dde90 100644
--- a/src/AST.hs
+++ b/src/AST.hs
@@ -172,6 +172,7 @@ data SOp a t where
ORecip :: ScalIsFloating a ~ True => SScalTy a -> SOp (TScal a) (TScal a)
OExp :: ScalIsFloating a ~ True => SScalTy a -> SOp (TScal a) (TScal a)
OLog :: ScalIsFloating a ~ True => SScalTy a -> SOp (TScal a) (TScal a)
+ OIDiv :: ScalIsIntegral a ~ True => SScalTy a -> SOp (TPair (TScal a) (TScal a)) (TScal a)
deriving instance Show (SOp a t)
opt2 :: SOp a t -> STy t
@@ -191,6 +192,7 @@ opt2 = \case
ORecip t -> STScal t
OExp t -> STScal t
OLog t -> STScal t
+ OIDiv t -> STScal t
typeOf :: Expr x env t -> STy t
typeOf = \case