diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-06-03 19:56:05 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-06-03 19:56:05 +0200 |
commit | a25d4061e219cec153f066fddbf710abd63b5e48 (patch) | |
tree | e569635cffe75025ffc32faec38f8c3813c941d6 /test/Util.hs | |
parent | 91e43dd2e403ca892e235087970f52bb952b469f (diff) |
Move sh*Tail to main ox-arrays
Diffstat (limited to 'test/Util.hs')
-rw-r--r-- | test/Util.hs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/Util.hs b/test/Util.hs index a358d30..f377e5b 100644 --- a/test/Util.hs +++ b/test/Util.hs @@ -13,7 +13,6 @@ import Data.Array.RankedS qualified as OR import GHC.TypeLits import Data.Array.Mixed.Types (fromSNat') -import Data.Array.Nested -- Returns highest value that satisfies the predicate, or `lo` if none does @@ -33,7 +32,3 @@ orSumOuter1 :: (OR.Unbox a, Num a) => SNat n -> OR.Array (n + 1) a -> OR.Array n orSumOuter1 (sn@SNat :: SNat n) = let n = fromSNat' sn in OR.rerank @n @1 @0 (OR.scalar . OR.sumA) . OR.transpose ([1 .. n] ++ [0]) - -rshTail :: ShR (n + 1) i -> ShR n i -rshTail (_ :$: sh) = sh -rshTail ZSR = error "unreachable" |