diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-09-11 10:25:24 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-09-11 10:25:24 +0000 |
commit | 834b4837799611fd7fbaa9609ea587e041cb0ca1 (patch) | |
tree | 1854b519b6a3dd10e3961796bdfccb52cbc00a4d /lib/Data/Packed/Internal/Matrix.hs | |
parent | 89651db9f2577ba42dbbb91c85565a12f34d0fb2 (diff) |
tensor lib moved to easyVision project
Diffstat (limited to 'lib/Data/Packed/Internal/Matrix.hs')
-rw-r--r-- | lib/Data/Packed/Internal/Matrix.hs | 5 |
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 | ||
16 | module Data.Packed.Internal.Matrix where | 17 | module 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' |
78 | toLists :: (Field t) => Matrix t -> [[t]] | 79 | toLists :: (Field t) => Matrix t -> [[t]] |
79 | toLists m = partit (cols m) . toList . cdat $ m | 80 | toLists m = partit (cols m) . toList . cdat $ m |
80 | 81 | ||