aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested/Internal/Shaped.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-12 23:20:13 +0100
committerTom Smeding <tom@tomsmeding.com>2025-03-13 09:27:51 +0100
commited6acbe5f409aba2fb222693da567ce04b7c4e01 (patch)
treebecbef3f3afeed63c248f057dae6fef0cb6c6147 /src/Data/Array/Nested/Internal/Shaped.hs
parentbcda5b7eb20874f948fbdc23b6daa3ebb792ffe0 (diff)
Implement quot/rem
Diffstat (limited to 'src/Data/Array/Nested/Internal/Shaped.hs')
-rw-r--r--src/Data/Array/Nested/Internal/Shaped.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Data/Array/Nested/Internal/Shaped.hs b/src/Data/Array/Nested/Internal/Shaped.hs
index f75519f..ed616cf 100644
--- a/src/Data/Array/Nested/Internal/Shaped.hs
+++ b/src/Data/Array/Nested/Internal/Shaped.hs
@@ -234,6 +234,10 @@ instance (FloatElt a, PrimElt a) => Floating (Shaped sh a) where
log1pexp = arithPromoteShaped GHC.Float.log1pexp
log1mexp = arithPromoteShaped GHC.Float.log1mexp
+squotArray, sremArray :: (IntElt a, PrimElt a) => Shaped sh a -> Shaped sh a -> Shaped sh a
+squotArray = arithPromoteShaped2 mquotArray
+sremArray = arithPromoteShaped2 mremArray
+
semptyArray :: KnownElt a => ShS sh -> Shaped (0 : sh) a
semptyArray sh = Shaped (memptyArray (shCvtSX sh))