summaryrefslogtreecommitdiff
path: root/lib/Data
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Data')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index 0664e9b..b8de245 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -108,6 +108,8 @@ createMatrix order r c = do
108 108
109reshape c v = matrixFromVector RowMajor c v 109reshape c v = matrixFromVector RowMajor c v
110 110
111singleton x = reshape 1 (fromList [x])
112
111transdataG :: Storable a => Int -> Vector a -> Int -> Vector a 113transdataG :: Storable a => Int -> Vector a -> Int -> Vector a
112transdataG c1 d c2 = fromList . concat . transpose . partit c1 . toList $ d 114transdataG c1 d c2 = fromList . concat . transpose . partit c1 . toList $ d
113 115