From 7e736bc767942e38f4c0cf4a4d8a324b17c0316d Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Tue, 2 Feb 2010 09:14:55 +0000 Subject: table, splitEvery --- lib/Numeric/LinearAlgebra/Algorithms.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Numeric/LinearAlgebra/Algorithms.hs') diff --git a/lib/Numeric/LinearAlgebra/Algorithms.hs b/lib/Numeric/LinearAlgebra/Algorithms.hs index 51e0922..6b0fb08 100644 --- a/lib/Numeric/LinearAlgebra/Algorithms.hs +++ b/lib/Numeric/LinearAlgebra/Algorithms.hs @@ -729,7 +729,7 @@ m2=(4><3) -} kronecker :: (Field t) => Matrix t -> Matrix t -> Matrix t kronecker a b = fromBlocks - . partit (cols a) + . splitEvery (cols a) . map (reshape (cols b)) . toRows $ flatten a `outer` flatten b -- cgit v1.2.3