dsp-0.2.5: Haskell Digital Signal Processing

Safe HaskellSafe
LanguageHaskell98

Matrix.Sparse

Documentation

data Matrix i j a Source #

Instances
Functor (Matrix i j) Source # 
Instance details

Defined in Matrix.Sparse

Methods

fmap :: (a -> b) -> Matrix i j a -> Matrix i j b #

(<$) :: a -> Matrix i j b -> Matrix i j a #

(Show i, Show j, Show a) => Show (Matrix i j a) Source # 
Instance details

Defined in Matrix.Sparse

Methods

showsPrec :: Int -> Matrix i j a -> ShowS #

show :: Matrix i j a -> String #

showList :: [Matrix i j a] -> ShowS #

bounds :: Matrix i j a -> ((i, j), (i, j)) Source #

fromMap :: (Ord i, Ord j) => ((i, j), (i, j)) -> Map (i, j) a -> Matrix i j a Source #

fromRows :: (Ord i, Ord j) => ((i, j), (i, j)) -> Map i (Map j a) -> Matrix i j a Source #

fromColumns :: (Ord i, Ord j) => ((i, j), (i, j)) -> Map j (Map i a) -> Matrix i j a Source #

fromDense :: (Ix i, Ix j) => Array (i, j) a -> Matrix i j a Source #

toRows :: (Ord i, Ord j) => Matrix i j a -> Map i (Map j a) Source #

toColumns :: (Ord i, Ord j) => Matrix i j a -> Map j (Map i a) Source #

toDense :: (Ix i, Ix j, Num a) => Matrix i j a -> Array (i, j) a Source #

getRow :: (Ord i, Ord j) => i -> Matrix i j a -> Map j a Source #

getColumn :: (Ord i, Ord j) => j -> Matrix i j a -> Map i a Source #

mulVector :: (Ix i, Ix j, Num a) => Matrix i j a -> Array j a -> Array i a Source #