From: Michael Orlitzky Date: Sun, 21 Jul 2013 14:13:24 +0000 (-0400) Subject: Constrain Normed instance to column vectors (m-by-1 matrices). X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=4bd7e17d1c9315e30881ad697371640acbfa1fb5;p=numerical-analysis.git Constrain Normed instance to column vectors (m-by-1 matrices). --- diff --git a/src/Linear/Matrix.hs b/src/Linear/Matrix.hs index b17d0eb..8490b22 100644 --- a/src/Linear/Matrix.hs +++ b/src/Linear/Matrix.hs @@ -417,9 +417,8 @@ instance (Ring.C a, Arity m, Arity n) => Module.C a (Mat m n a) where instance (Algebraic.C a, ToRational.C a, - Arity m, - Arity n) - => Normed (Mat (S m) (S n) a) where + Arity m) + => Normed (Mat (S m) N1 a) where -- | Generic p-norms. The usual norm in R^n is (norm_p 2). We treat -- all matrices as big vectors. --