summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Matrix.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Data/Packed/Internal/Matrix.hs')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index 09f081a..44204a1 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -297,12 +297,7 @@ subMatrix = subMatrixD
297 297
298-- | obtains the complex conjugate of a complex vector 298-- | obtains the complex conjugate of a complex vector
299conj :: Vector (Complex Double) -> Vector (Complex Double) 299conj :: Vector (Complex Double) -> Vector (Complex Double)
300conj v = unsafePerformIO $ do 300conj = mapVector conjugate
301 r <- createVector (dim v)
302 app2 cconjugate vec v vec r "cconjugate"
303 return r
304foreign import ccall "auxi.h conjugate" cconjugate :: TCVCV
305
306 301
307-- | creates a complex vector from vectors with real and imaginary parts 302-- | creates a complex vector from vectors with real and imaginary parts
308toComplex :: (Vector Double, Vector Double) -> Vector (Complex Double) 303toComplex :: (Vector Double, Vector Double) -> Vector (Complex Double)