summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Interface.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Interface.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Interface.hs8
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()
28import Data.Packed.Vector 28import Data.Packed.Vector
29import Data.Packed.Matrix 29import Data.Packed.Matrix
30import Numeric.LinearAlgebra.Algorithms 30import Numeric.LinearAlgebra.Algorithms
31import Numeric.LinearAlgebra.Linear
32
33--import Numeric.GSL.Vector
31 34
32class Mul a b c | a b -> c where 35class 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
50infixl 7 <.> 54infixl 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
116a <-> b = joinV a b 120a <-> b = joinV a b
117 121
122----------------------------------------------------
123