summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Matrix.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2008-06-06 12:08:01 +0000
committerAlberto Ruiz <aruiz@um.es>2008-06-06 12:08:01 +0000
commitfa7d2f17cbba1de2e900432e07bf4e1e7da2caab (patch)
treefb910d7f2ff1176701d7a04cbe96fb46ffb8e94f /lib/Data/Packed/Internal/Matrix.hs
parent4576f9c288b0f9cc48c2c4eff68ad8403b4fa4e0 (diff)
safe wrappers and examples/parallel.hs
Diffstat (limited to 'lib/Data/Packed/Internal/Matrix.hs')
-rw-r--r--lib/Data/Packed/Internal/Matrix.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs
index 1c58f6e..c6129c6 100644
--- a/lib/Data/Packed/Internal/Matrix.hs
+++ b/lib/Data/Packed/Internal/Matrix.hs
@@ -254,8 +254,8 @@ transdataAux fun c1 d c2 =
254 r2 = dim d `div` c2 254 r2 = dim d `div` c2
255 noneed = r1 == 1 || c1 == 1 255 noneed = r1 == 1 || c1 == 1
256 256
257foreign import ccall unsafe "auxi.h transR" ctransR :: TMM 257foreign import ccall "auxi.h transR" ctransR :: TMM
258foreign import ccall unsafe "auxi.h transC" ctransC :: TCMCM 258foreign import ccall "auxi.h transC" ctransC :: TCMCM
259 259
260------------------------------------------------------------------ 260------------------------------------------------------------------
261 261
@@ -275,10 +275,10 @@ multiplyAux fun a b = unsafePerformIO $ do
275 return r 275 return r
276 276
277multiplyR = multiplyAux cmultiplyR 277multiplyR = multiplyAux cmultiplyR
278foreign import ccall unsafe "auxi.h multiplyR" cmultiplyR :: TauxMul Double 278foreign import ccall "auxi.h multiplyR" cmultiplyR :: TauxMul Double
279 279
280multiplyC = multiplyAux cmultiplyC 280multiplyC = multiplyAux cmultiplyC
281foreign import ccall unsafe "auxi.h multiplyC" cmultiplyC :: TauxMul (Complex Double) 281foreign import ccall "auxi.h multiplyC" cmultiplyC :: TauxMul (Complex Double)
282 282
283-- | matrix product 283-- | matrix product
284multiply :: (Element a) => Matrix a -> Matrix a -> Matrix a 284multiply :: (Element a) => Matrix a -> Matrix a -> Matrix a