diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-05-27 10:41:40 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-05-27 10:41:40 +0200 |
commit | cf3c788f0c44577ac1a5365e8154200b53a36409 (patch) | |
tree | d667ea10609e74b69b11309bb59b7e000b240a92 /packages/base/src/Data/Packed/Internal/Numeric.hs | |
parent | 365e2435e71de10ebe849acac5a107b6f43817c4 (diff) |
static dimensions, cont.
Diffstat (limited to 'packages/base/src/Data/Packed/Internal/Numeric.hs')
-rw-r--r-- | packages/base/src/Data/Packed/Internal/Numeric.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/base/src/Data/Packed/Internal/Numeric.hs b/packages/base/src/Data/Packed/Internal/Numeric.hs index 3c1c1d0..0205a17 100644 --- a/packages/base/src/Data/Packed/Internal/Numeric.hs +++ b/packages/base/src/Data/Packed/Internal/Numeric.hs | |||
@@ -3,6 +3,7 @@ | |||
3 | {-# LANGUAGE FlexibleContexts #-} | 3 | {-# LANGUAGE FlexibleContexts #-} |
4 | {-# LANGUAGE FlexibleInstances #-} | 4 | {-# LANGUAGE FlexibleInstances #-} |
5 | {-# LANGUAGE MultiParamTypeClasses #-} | 5 | {-# LANGUAGE MultiParamTypeClasses #-} |
6 | {-# LANGUAGE FunctionalDependencies #-} | ||
6 | {-# LANGUAGE UndecidableInstances #-} | 7 | {-# LANGUAGE UndecidableInstances #-} |
7 | 8 | ||
8 | ----------------------------------------------------------------------------- | 9 | ----------------------------------------------------------------------------- |
@@ -692,12 +693,12 @@ condV f a b l e t = f a' b' l' e' t' | |||
692 | 693 | ||
693 | -------------------------------------------------------------------------------- | 694 | -------------------------------------------------------------------------------- |
694 | 695 | ||
695 | class Transposable t | 696 | class Transposable m mt | m -> mt, mt -> m |
696 | where | 697 | where |
697 | -- | (conjugate) transpose | 698 | -- | (conjugate) transpose |
698 | tr :: t -> t | 699 | tr :: m -> mt |
699 | 700 | ||
700 | instance (Container Vector t) => Transposable (Matrix t) | 701 | instance (Container Vector t) => Transposable (Matrix t) (Matrix t) |
701 | where | 702 | where |
702 | tr = ctrans | 703 | tr = ctrans |
703 | 704 | ||