Stability | provisional |
---|---|
Maintainer | Alberto Ruiz (aruiz at um dot es) |
Safe Haskell | Safe-Infered |
- disp :: Int -> Matrix Double -> IO ()
- zeros :: Int -> Int -> Matrix Double
- ones :: Int -> Int -> Matrix Double
- diagl :: [Double] -> Matrix Double
- row :: [Double] -> Matrix Double
- col :: [Double] -> Matrix Double
- (&) :: Vector Double -> Vector Double -> Vector Double
- (!) :: Matrix Double -> Matrix Double -> Matrix Double
- (#) :: Matrix Double -> Matrix Double -> Matrix Double
- rand :: Int -> Int -> IO (Matrix Double)
- randn :: Int -> Int -> IO (Matrix Double)
- cross :: Vector Double -> Vector Double -> Vector Double
- norm :: Vector Double -> Double
- corr :: Product t => Vector t -> Vector t -> Vector t
- conv :: (Product t, Num t) => Vector t -> Vector t -> Vector t
- corrMin :: (Container Vector t, RealElement t, Product t) => Vector t -> Vector t -> Vector t
- corr2 :: Product a => Matrix a -> Matrix a -> Matrix a
- conv2 :: (Num a, Product a) => Matrix a -> Matrix a -> Matrix a
- separable :: Element t => (Vector t -> Vector t) -> Matrix t -> Matrix t
- vec :: Element t => Matrix t -> Vector t
- vech :: Element t => Matrix t -> Vector t
- dup :: (Num t, Num (Vector t), Element t) => Int -> Matrix t
- vtrans :: Element t => Int -> Matrix t -> Matrix t
Convenience functions for real elements
disp :: Int -> Matrix Double -> IO ()Source
show a matrix with given number of digits after the decimal point
(!) :: Matrix Double -> Matrix Double -> Matrix DoubleSource
horizontal concatenation of real matrices
rand :: Int -> Int -> IO (Matrix Double)Source
pseudorandom matrix with uniform elements between 0 and 1
cross :: Vector Double -> Vector Double -> Vector DoubleSource
cross product (for three-element real vectors)
Convolution
1D
correlation
>>>
corr (fromList[1,2,3]) (fromList [1..10])
fromList [14.0,20.0,26.0,32.0,38.0,44.0,50.0,56.0]
conv :: (Product t, Num t) => Vector t -> Vector t -> Vector tSource
convolution (corr
with reversed kernel and padded input, equivalent to polynomial product)
>>>
conv (fromList[1,1]) (fromList [-1,1])
fromList [-1.0,0.0,1.0]
2D
separable :: Element t => (Vector t -> Vector t) -> Matrix t -> Matrix tSource
matrix computation implemented as separated vector operations by rows and columns.
Tools for the Kronecker product
(see A. Fusiello, A matter of notation: Several uses of the Kronecker product in 3d computer vision, Pattern Recognition Letters 28 (15) (2007) 2127-2132)