summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Algorithms.hs
diff options
context:
space:
mode:
authorVivian McPhail <haskell.vivian.mcphail@gmail.com>2010-07-05 09:21:57 +0000
committerVivian McPhail <haskell.vivian.mcphail@gmail.com>2010-07-05 09:21:57 +0000
commit21ccf5342555bd41a61ed132b09eacebf3c71feb (patch)
treebad2e548a20ea0d1dbe3813199e40b315634ac7d /lib/Numeric/LinearAlgebra/Algorithms.hs
parentdd054da0524abdb14d013c9f9f43272515b77b6e (diff)
added Vectors typeclass and refactored
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Algorithms.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Algorithms.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Numeric/LinearAlgebra/Algorithms.hs b/lib/Numeric/LinearAlgebra/Algorithms.hs
index 55398e0..e058490 100644
--- a/lib/Numeric/LinearAlgebra/Algorithms.hs
+++ b/lib/Numeric/LinearAlgebra/Algorithms.hs
@@ -22,7 +22,7 @@ module Numeric.LinearAlgebra.Algorithms (
22-- * Supported types 22-- * Supported types
23 Field(), 23 Field(),
24-- * Products 24-- * Products
25 multiply, dot, 25 multiply, -- dot, moved dot to typeclass
26 outer, kronecker, 26 outer, kronecker,
27-- * Linear Systems 27-- * Linear Systems
28 linearSolve, 28 linearSolve,
@@ -707,12 +707,13 @@ luFact (l_u,perm) | r <= c = (l ,u ,p, s)
707 707
708-------------------------------------------------- 708--------------------------------------------------
709 709
710{- moved to Numeric.LinearAlgebra.Interface Vector typeclass
710-- | Euclidean inner product. 711-- | Euclidean inner product.
711dot :: (Field t) => Vector t -> Vector t -> t 712dot :: (Field t) => Vector t -> Vector t -> t
712dot u v = multiply r c @@> (0,0) 713dot u v = multiply r c @@> (0,0)
713 where r = asRow u 714 where r = asRow u
714 c = asColumn v 715 c = asColumn v
715 716-}
716 717
717{- | Outer product of two vectors. 718{- | Outer product of two vectors.
718 719