summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Polynomials.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Polynomials.hs')
-rw-r--r--lib/Numeric/GSL/Polynomials.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/Polynomials.hs b/lib/Numeric/GSL/Polynomials.hs
index e663711..3e0cf81 100644
--- a/lib/Numeric/GSL/Polynomials.hs
+++ b/lib/Numeric/GSL/Polynomials.hs
@@ -47,8 +47,7 @@ polySolve = toList . polySolve' . fromList
47polySolve' :: Vector Double -> Vector (Complex Double) 47polySolve' :: Vector Double -> Vector (Complex Double)
48polySolve' v | dim v > 1 = unsafePerformIO $ do 48polySolve' v | dim v > 1 = unsafePerformIO $ do
49 r <- createVector (dim v-1) 49 r <- createVector (dim v-1)
50 ww2 withVector v withVector r $ \ v r -> 50 app2 c_polySolve vec v vec r "polySolve"
51 c_polySolve // v // r // check "polySolve"
52 return r 51 return r
53 | otherwise = error "polySolve on a polynomial of degree zero" 52 | otherwise = error "polySolve on a polynomial of degree zero"
54 53