diff options
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Interface.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Interface.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Interface.hs b/lib/Numeric/LinearAlgebra/Interface.hs index 30547d9..f8917a0 100644 --- a/lib/Numeric/LinearAlgebra/Interface.hs +++ b/lib/Numeric/LinearAlgebra/Interface.hs | |||
@@ -28,6 +28,9 @@ import Numeric.LinearAlgebra.Instances() | |||
28 | import Data.Packed.Vector | 28 | import Data.Packed.Vector |
29 | import Data.Packed.Matrix | 29 | import Data.Packed.Matrix |
30 | import Numeric.LinearAlgebra.Algorithms | 30 | import Numeric.LinearAlgebra.Algorithms |
31 | import Numeric.LinearAlgebra.Linear | ||
32 | |||
33 | --import Numeric.GSL.Vector | ||
31 | 34 | ||
32 | class Mul a b c | a b -> c where | 35 | class Mul a b c | a b -> c where |
33 | infixl 7 <> | 36 | infixl 7 <> |
@@ -46,7 +49,8 @@ instance Mul Vector Matrix Vector where | |||
46 | --------------------------------------------------- | 49 | --------------------------------------------------- |
47 | 50 | ||
48 | -- | Dot product: @u \<.\> v = dot u v@ | 51 | -- | Dot product: @u \<.\> v = dot u v@ |
49 | (<.>) :: (Field t) => Vector t -> Vector t -> t | 52 | --(<.>) :: (Field t) => Vector t -> Vector t -> t |
53 | (<.>) :: Vectors Vector t => Vector t -> Vector t -> t | ||
50 | infixl 7 <.> | 54 | infixl 7 <.> |
51 | (<.>) = dot | 55 | (<.>) = dot |
52 | 56 | ||
@@ -115,3 +119,5 @@ a <|> b = joinH a b | |||
115 | -- (<->) :: (Element t, Joinable a b) => a t -> b t -> Matrix t | 119 | -- (<->) :: (Element t, Joinable a b) => a t -> b t -> Matrix t |
116 | a <-> b = joinV a b | 120 | a <-> b = joinV a b |
117 | 121 | ||
122 | ---------------------------------------------------- | ||
123 | |||