summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Vector.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-06-06 17:40:09 +0000
committerAlberto Ruiz <aruiz@um.es>2007-06-06 17:40:09 +0000
commite7c03c1ab4de85e7a700d2eafaebd37f4607c51f (patch)
tree4512d18907d88d0390671fcde4e8886d30cd0492 /lib/Data/Packed/Internal/Vector.hs
parenta4254a0b9bfbd720efbe42b86aa50107a74d56c7 (diff)
working on tensor contractions
Diffstat (limited to 'lib/Data/Packed/Internal/Vector.hs')
-rw-r--r--lib/Data/Packed/Internal/Vector.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Data/Packed/Internal/Vector.hs b/lib/Data/Packed/Internal/Vector.hs
index 6ed9339..36d5df7 100644
--- a/lib/Data/Packed/Internal/Vector.hs
+++ b/lib/Data/Packed/Internal/Vector.hs
@@ -35,6 +35,8 @@ instance (Storable a, RealFloat a) => Storable (Complex a) where --
35 poke p (a :+ b) = pokeArray (castPtr p) [a,b] -- 35 poke p (a :+ b) = pokeArray (castPtr p) [a,b] --
36---------------------------------------------------------------------- 36----------------------------------------------------------------------
37 37
38on f g = \x y -> f (g x) (g y)
39
38(//) :: x -> (x -> y) -> y 40(//) :: x -> (x -> y) -> y
39infixl 0 // 41infixl 0 //
40(//) = flip ($) 42(//) = flip ($)