From 9e2f7fb0ca902665b430a96f77959522976a97f9 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Fri, 14 Sep 2007 11:06:57 +0000 Subject: code refactoring --- lib/LinearAlgebra/Linear.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/LinearAlgebra') 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 import Complex -class (Num e, Field e) => Linear c e where +class (Field e) => Linear c e where scale :: e -> c e -> c e addConstant :: e -> c e -> c e add :: c e -> c e -> c e @@ -68,5 +68,5 @@ dot u v = dat (multiply r c) `at` 0 , 10.0, 4.0, 6.0 , 15.0, 6.0, 9.0 ]@ -} -outer :: (Num t, Field t) => Vector t -> Vector t -> Matrix t +outer :: (Field t) => Vector t -> Vector t -> Matrix t outer u v = asColumn u `multiply` asRow v -- cgit v1.2.3