packages feed

uniqueness-periods-vector-general 0.5.2.0 → 0.5.3.0

raw patch · 3 files changed

+8/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -81,3 +81,6 @@  * Fifth version revised B. Fixed inlining policies so that ghc -dcore-lint produces now no warnings. Some minor code improvements. +## 0.5.3.0 -- 2020-11-12++* Fifth version revised C. Fixed issues with empty second element in the tuple for maximumElBy function.
Languages/UniquenessPeriods/Vector/General/Debug.hs view
@@ -56,6 +56,7 @@   ->  UniqG2 a b -- ^ The data to be analyzed.   -> UniquenessG1 a b -- ^ The maximum element in respect with the given parameters. maximumElBy k vN y+ | V.null . snd .get22 $ y = error "Languages.UniquenessPeriods.Vector.General.Debug.maximumElBy: undefined for the empty second element in the tuple. "  | compare k (V.length vN) == GT = error "Languages.UniquenessPeriods.Vector.General.Debug.maximumElBy: undefined for that amount of norms. "  | compare k 0 == GT =    let !maxK = V.maximumBy (\(_,vN0,_) (_,vN1,_) -> compare (V.unsafeIndex vN0 (k - 1)) (V.unsafeIndex vN1 (k - 1))) . snd . get22 $ y@@ -212,7 +213,9 @@   -> V.Vector ([b] -> b) -- ^ 'V.Vector' of the represented as functions \"properties\" to be applied consequently.   -> UniqG2 a b -- ^ The data to be analyzed.   -> UniqG2 a b-maximumElByVec k vN x = let !uniq = maximumElBy k vN x in let !snD = secondFrom3 uniq in UL2 ((\(!v1,!v2) -> ((fst . get22 $ x) ++ V.toList v1,v2)) .+maximumElByVec k vN x+ | V.null . snd . get22 $ x = x+ | otherwise = let !uniq = maximumElBy k vN x in let !snD = secondFrom3 uniq in UL2 ((\(!v1,!v2) -> ((fst . get22 $ x) ++ V.toList v1,v2)) .       V.unstablePartition (equalSnDs snD . secondFrom3) . snd . get22 $ x) {-# INLINE maximumElByVec #-} 
uniqueness-periods-vector-general.cabal view
@@ -2,7 +2,7 @@ --   For further documentation, see http://haskell.org/cabal/users-guide/  name:                uniqueness-periods-vector-general-version:             0.5.2.0+version:             0.5.3.0 synopsis:            Some kind of the optimization approach to data inner structure. description:         Generalization of the functionality of the dobutokO-poetry-general-languages package homepage:            https://hackage.haskell.org/package/uniqueness-periods-vector-general