summaryrefslogtreecommitdiff
path: root/lib/LinearAlgebra/Linear.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-09-14 11:06:57 +0000
committerAlberto Ruiz <aruiz@um.es>2007-09-14 11:06:57 +0000
commit9e2f7fb0ca902665b430a96f77959522976a97f9 (patch)
treec2f258fe28df79a645f3908655b46fbaf89ecf16 /lib/LinearAlgebra/Linear.hs
parent620d5008ea9a931a91907cd0c902bb64f005121f (diff)
code refactoring
Diffstat (limited to 'lib/LinearAlgebra/Linear.hs')
-rw-r--r--lib/LinearAlgebra/Linear.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/LinearAlgebra/Linear.hs b/lib/LinearAlgebra/Linear.hs
index 51b32f5..53e011f 100644
--- a/lib/LinearAlgebra/Linear.hs
+++ b/lib/LinearAlgebra/Linear.hs
@@ -27,7 +27,7 @@ import GSL.Vector
27import Complex 27import Complex
28 28
29 29
30class (Num e, Field e) => Linear c e where 30class (Field e) => Linear c e where
31 scale :: e -> c e -> c e 31 scale :: e -> c e -> c e
32 addConstant :: e -> c e -> c e 32 addConstant :: e -> c e -> c e
33 add :: c e -> c e -> c e 33 add :: c e -> c e -> c e
@@ -68,5 +68,5 @@ dot u v = dat (multiply r c) `at` 0
68 , 10.0, 4.0, 6.0 68 , 10.0, 4.0, 6.0
69 , 15.0, 6.0, 9.0 ]@ 69 , 15.0, 6.0, 9.0 ]@
70-} 70-}
71outer :: (Num t, Field t) => Vector t -> Vector t -> Matrix t 71outer :: (Field t) => Vector t -> Vector t -> Matrix t
72outer u v = asColumn u `multiply` asRow v 72outer u v = asColumn u `multiply` asRow v