diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-05-14 21:24:36 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-05-14 21:24:36 +0200 |
commit | 6c320f731fa7a8153fe602b21fbe0fd60969cdf1 (patch) | |
tree | 2fa457c538bc55c53a7d2fc427ef18013c6d293e /packages/hmatrix/src/Numeric/GSL/Vector.hs | |
parent | 4b0a700c6a39d34bb85c4a1609ab0e6893b1fc5d (diff) |
moved zip real
Diffstat (limited to 'packages/hmatrix/src/Numeric/GSL/Vector.hs')
-rw-r--r-- | packages/hmatrix/src/Numeric/GSL/Vector.hs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/packages/hmatrix/src/Numeric/GSL/Vector.hs b/packages/hmatrix/src/Numeric/GSL/Vector.hs index 7197924..7b5a617 100644 --- a/packages/hmatrix/src/Numeric/GSL/Vector.hs +++ b/packages/hmatrix/src/Numeric/GSL/Vector.hs | |||
@@ -30,7 +30,7 @@ import Numeric.Vectorized( | |||
30 | FunCodeS(..), toScalarR, toScalarF, toScalarC, toScalarQ, | 30 | FunCodeS(..), toScalarR, toScalarF, toScalarC, toScalarQ, |
31 | FunCodeV(..), vectorMapR, vectorMapF, | 31 | FunCodeV(..), vectorMapR, vectorMapF, |
32 | FunCodeSV(..), vectorMapValR, vectorMapValF, | 32 | FunCodeSV(..), vectorMapValR, vectorMapValF, |
33 | FunCodeVV(..) | 33 | FunCodeVV(..), vectorZipR, vectorZipF |
34 | ) | 34 | ) |
35 | 35 | ||
36 | import Data.Complex | 36 | import Data.Complex |
@@ -93,24 +93,12 @@ foreign import ccall unsafe "gsl-aux.h mapValQ" c_vectorMapValQ :: CInt -> Ptr ( | |||
93 | 93 | ||
94 | ------------------------------------------------------------------- | 94 | ------------------------------------------------------------------- |
95 | 95 | ||
96 | -- | elementwise operation on real vectors | ||
97 | vectorZipR :: FunCodeVV -> Vector Double -> Vector Double -> Vector Double | ||
98 | vectorZipR = vectorZipAux c_vectorZipR | ||
99 | |||
100 | foreign import ccall unsafe "gsl-aux.h zipR" c_vectorZipR :: CInt -> TVVV | ||
101 | |||
102 | -- | elementwise operation on complex vectors | 96 | -- | elementwise operation on complex vectors |
103 | vectorZipC :: FunCodeVV -> Vector (Complex Double) -> Vector (Complex Double) -> Vector (Complex Double) | 97 | vectorZipC :: FunCodeVV -> Vector (Complex Double) -> Vector (Complex Double) -> Vector (Complex Double) |
104 | vectorZipC = vectorZipAux c_vectorZipC | 98 | vectorZipC = vectorZipAux c_vectorZipC |
105 | 99 | ||
106 | foreign import ccall unsafe "gsl-aux.h zipC" c_vectorZipC :: CInt -> TCVCVCV | 100 | foreign import ccall unsafe "gsl-aux.h zipC" c_vectorZipC :: CInt -> TCVCVCV |
107 | 101 | ||
108 | -- | elementwise operation on real vectors | ||
109 | vectorZipF :: FunCodeVV -> Vector Float -> Vector Float -> Vector Float | ||
110 | vectorZipF = vectorZipAux c_vectorZipF | ||
111 | |||
112 | foreign import ccall unsafe "gsl-aux.h zipF" c_vectorZipF :: CInt -> TFFF | ||
113 | |||
114 | -- | elementwise operation on complex vectors | 102 | -- | elementwise operation on complex vectors |
115 | vectorZipQ :: FunCodeVV -> Vector (Complex Float) -> Vector (Complex Float) -> Vector (Complex Float) | 103 | vectorZipQ :: FunCodeVV -> Vector (Complex Float) -> Vector (Complex Float) -> Vector (Complex Float) |
116 | vectorZipQ = vectorZipAux c_vectorZipQ | 104 | vectorZipQ = vectorZipAux c_vectorZipQ |