From c3b66ae4ec9d4dc38205f864af2bc097353ba54c Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Sun, 5 Oct 2008 17:47:02 +0000 Subject: workaround option --- lib/Numeric/LinearAlgebra/Algorithms.hs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/Numeric/LinearAlgebra/Algorithms.hs') diff --git a/lib/Numeric/LinearAlgebra/Algorithms.hs b/lib/Numeric/LinearAlgebra/Algorithms.hs index c7118c1..2c5f44c 100644 --- a/lib/Numeric/LinearAlgebra/Algorithms.hs +++ b/lib/Numeric/LinearAlgebra/Algorithms.hs @@ -1,4 +1,5 @@ -{-# OPTIONS_GHC -fglasgow-exts #-} +{-# OPTIONS_GHC -XFlexibleContexts -XFlexibleInstances #-} +{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- {- | Module : Numeric.LinearAlgebra.Algorithms @@ -138,8 +139,12 @@ instance Field (Complex Double) where qr = unpackQR . qrC hess = unpackHess hessC schur = schurC - multiply = mulCW -- workaround - -- multiplyC3 + +#if defined(WORKAROUND) + multiply = mulCW +#else + multiply = multiplyC3 +#endif -- | Eigenvalues and Eigenvectors of a complex hermitian or real symmetric matrix using lapack's dsyev or zheev. -- -- cgit v1.2.3