Download raw

Created: 2023-12-19 03:40:10.302489 UTC

Size: 1333

Preview (limited to 512 bytes)

"{-# OPTIONS -fno-spec-constr-count #-}\nmodule Algo.AwShCC (awshcc) where\n\nimport Data.Vector.Unboxed as V\n\nawshcc :: (Int, Vector Int, Vector Int) -> Vector Int\n{-# NOINLINE awshcc #-}\nawshcc (n, es1, es2) = concomp ds es1' es2'\n where\n ds = V.enumFromTo 0 (n-1) V.++ V.enumFromTo 0 (n-1)\n es1' = es1 V.++ es2\n es2' = es2 V.++ es1\n\n starCheck ds = V.backpermute st' gs\n where\n gs = V.backpermute ds ds\n st = V.zipWith (==) ds gs\n st' = V.update st . V.f"

Casa is a service provided by the Haskell Foundation │ Originally developed by FP Complete