aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Mixed/Internal
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-12 23:17:48 +0100
committerTom Smeding <tom@tomsmeding.com>2025-03-12 23:17:48 +0100
commit11c3fda9ff63c466566e1f1375f5d8ae03833c90 (patch)
tree44e55620cbd655f83c5e28e7492169baeaa7ca52 /src/Data/Array/Mixed/Internal
parent766a925698a97cac03e972bdaa2500085be17c65 (diff)
Slight cleanup of arith instances for Mixed/Ranked/Shaped
Reformulate error messages; add NumElt superclass to FloatElt
Diffstat (limited to 'src/Data/Array/Mixed/Internal')
-rw-r--r--src/Data/Array/Mixed/Internal/Arith.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Array/Mixed/Internal/Arith.hs b/src/Data/Array/Mixed/Internal/Arith.hs
index fede541..313c885 100644
--- a/src/Data/Array/Mixed/Internal/Arith.hs
+++ b/src/Data/Array/Mixed/Internal/Arith.hs
@@ -794,7 +794,7 @@ instance NumElt CInt where
numEltDotprodInner = intWidBranchDotprod @CInt (scaleFromSVStrided (c_binary_i32_sv_strided (aboEnum BO_MUL))) (c_reduce1_i32 (aroEnum RO_SUM)) c_dotprodinner_i32
(scaleFromSVStrided (c_binary_i64_sv_strided (aboEnum BO_MUL))) (c_reduce1_i64 (aroEnum RO_SUM)) c_dotprodinner_i64
-class FloatElt a where
+class NumElt a => FloatElt a where
floatEltDiv :: SNat n -> RS.Array n a -> RS.Array n a -> RS.Array n a
floatEltPow :: SNat n -> RS.Array n a -> RS.Array n a -> RS.Array n a
floatEltLogbase :: SNat n -> RS.Array n a -> RS.Array n a -> RS.Array n a