diff options
Diffstat (limited to 'lib/Data/Packed/Internal/Matrix.hs')
-rw-r--r-- | lib/Data/Packed/Internal/Matrix.hs | 7 |
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 |
299 | conj :: Vector (Complex Double) -> Vector (Complex Double) | 299 | conj :: Vector (Complex Double) -> Vector (Complex Double) |
300 | conj v = unsafePerformIO $ do | 300 | conj = mapVector conjugate |
301 | r <- createVector (dim v) | ||
302 | app2 cconjugate vec v vec r "cconjugate" | ||
303 | return r | ||
304 | foreign 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 |
308 | toComplex :: (Vector Double, Vector Double) -> Vector (Complex Double) | 303 | toComplex :: (Vector Double, Vector Double) -> Vector (Complex Double) |