From 14327cb54fb3ba7ae81c00d7865c47cdd8ec9578 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 26 Nov 2025 22:58:47 +0100 Subject: Add INLINEABLE on ixxFromLinear --- src/Data/Array/Nested/Mixed/Shape.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Data/Array') 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)) -- cgit v1.2.3-70-g09d2