aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested/Mixed/Shape.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-11-26 22:58:47 +0100
committerTom Smeding <tom@tomsmeding.com>2025-11-26 22:58:47 +0100
commit14327cb54fb3ba7ae81c00d7865c47cdd8ec9578 (patch)
treee8d9c0da83238612f2db64cd55421f4d28e369b6 /src/Data/Array/Nested/Mixed/Shape.hs
parent829109ba73211394691d5789f35a23120feaf3f6 (diff)
Add INLINEABLE on ixxFromLinearHEADmaster
Diffstat (limited to 'src/Data/Array/Nested/Mixed/Shape.hs')
-rw-r--r--src/Data/Array/Nested/Mixed/Shape.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Data/Array/Nested/Mixed/Shape.hs b/src/Data/Array/Nested/Mixed/Shape.hs
index f127e3a..23c3abf 100644
--- a/src/Data/Array/Nested/Mixed/Shape.hs
+++ b/src/Data/Array/Nested/Mixed/Shape.hs
@@ -261,6 +261,7 @@ ixxZipWith :: (i -> j -> k) -> IxX sh i -> IxX sh j -> IxX sh k
ixxZipWith _ ZIX ZIX = ZIX
ixxZipWith f (i :.% is) (j :.% js) = f i j :.% ixxZipWith f is js
+{-# INLINEABLE ixxFromLinear #-}
ixxFromLinear :: IShX sh -> Int -> IIxX sh
ixxFromLinear = \sh -> -- give this function arity 1 so that suffixes is shared when it's called many times
let suffixes = drop 1 (scanr (*) 1 (shxToList sh))