summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Matrix.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-09-11 10:25:24 +0000
committerAlberto Ruiz <aruiz@um.es>2007-09-11 10:25:24 +0000
commit834b4837799611fd7fbaa9609ea587e041cb0ca1 (patch)
tree1854b519b6a3dd10e3961796bdfccb52cbc00a4d /lib/Data/Packed/Internal/Matrix.hs
parent89651db9f2577ba42dbbb91c85565a12f34d0fb2 (diff)
tensor lib moved to easyVision project
Diffstat (limited to 'lib/Data/Packed/Internal/Matrix.hs')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index ba32a67..2db4838 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -9,9 +9,10 @@
9-- Stability : provisional 9-- Stability : provisional
10-- Portability : portable (uses FFI) 10-- Portability : portable (uses FFI)
11-- 11--
12-- Fundamental types 12-- Internal matrix representation
13-- 13--
14----------------------------------------------------------------------------- 14-----------------------------------------------------------------------------
15-- --#hide
15 16
16module Data.Packed.Internal.Matrix where 17module Data.Packed.Internal.Matrix where
17 18
@@ -74,7 +75,7 @@ type Mt t s = Int -> Int -> Ptr t -> s
74-- infixr 6 ::> 75-- infixr 6 ::>
75-- type t ::> s = Mt t s 76-- type t ::> s = Mt t s
76 77
77-- | the inverse of 'fromLists' 78-- | the inverse of 'Data.Packed.Matrix.fromLists'
78toLists :: (Field t) => Matrix t -> [[t]] 79toLists :: (Field t) => Matrix t -> [[t]]
79toLists m = partit (cols m) . toList . cdat $ m 80toLists m = partit (cols m) . toList . cdat $ m
80 81