We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eaf4e7 commit fc6f38aCopy full SHA for fc6f38a
2 files changed
dataframe.cabal
@@ -103,10 +103,10 @@ library
103
directory >= 1.3.0.0 && < 2,
104
granite == 0.3.0.5,
105
hashable >= 1.2 && < 2,
106
+ mtl,
107
process ^>= 1.6,
108
snappy-hs ^>= 0.1,
109
random >= 1.2 && < 1.3,
- random-shuffle >= 0.0.4 && < 1,
110
regex-tdfa >= 1.3.0 && < 2,
111
scientific >=0.3.1 && <0.4,
112
template-haskell >= 2.0 && < 3,
src/DataFrame/Operations/Permutation.hs
@@ -81,7 +81,7 @@ shuffledIndices pureGen k = shuffleVec pureGen (VU.fromList [0 .. (k - 1)])
81
where
82
shuffleVec :: (RandomGen g) => g -> VU.Vector Int -> VU.Vector Int
83
shuffleVec g v = runST $ do
84
- vm <- VU.thaw v
+ vm <- VUM.generate k id --VU.thaw v
85
let (n, nGen) = randomR (0, (k - 1)) g
86
go vm n nGen
87
VU.unsafeFreeze vm
0 commit comments