diff options
Diffstat (limited to 'packages/base/src/Data/Packed/Numeric.hs')
-rw-r--r-- | packages/base/src/Data/Packed/Numeric.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/base/src/Data/Packed/Numeric.hs b/packages/base/src/Data/Packed/Numeric.hs index b2395f2..6d62f22 100644 --- a/packages/base/src/Data/Packed/Numeric.hs +++ b/packages/base/src/Data/Packed/Numeric.hs | |||
@@ -39,7 +39,7 @@ module Data.Packed.Numeric ( | |||
39 | step, cond, find, assoc, accum, | 39 | step, cond, find, assoc, accum, |
40 | Transposable(..), Linear(..), | 40 | Transposable(..), Linear(..), |
41 | -- * Matrix product | 41 | -- * Matrix product |
42 | Product(..), udot, dot, (<·>), (#>), app, | 42 | Product(..), udot, dot, (<·>), (#>), (<#), app, |
43 | Mul(..), | 43 | Mul(..), |
44 | (<.>), | 44 | (<.>), |
45 | optimiseMult, | 45 | optimiseMult, |
@@ -141,6 +141,11 @@ fromList [140.0,320.0] | |||
141 | app :: Numeric t => Matrix t -> Vector t -> Vector t | 141 | app :: Numeric t => Matrix t -> Vector t -> Vector t |
142 | app = (#>) | 142 | app = (#>) |
143 | 143 | ||
144 | infixl 8 <# | ||
145 | -- | dense vector-matrix product | ||
146 | (<#) :: Numeric t => Vector t -> Matrix t -> Vector t | ||
147 | (<#) = vXm | ||
148 | |||
144 | -------------------------------------------------------------------------------- | 149 | -------------------------------------------------------------------------------- |
145 | 150 | ||
146 | class Mul a b c | a b -> c where | 151 | class Mul a b c | a b -> c where |