From 4bd7e17d1c9315e30881ad697371640acbfa1fb5 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 21 Jul 2013 10:13:24 -0400 Subject: [PATCH] Constrain Normed instance to column vectors (m-by-1 matrices). --- src/Linear/Matrix.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. -- -- 2.44.2