BNFC-2.5.0: A compiler front-end generator.

Safe HaskellNone

Data.Matrix.Class

Documentation

fingerprint :: (AbelianGroupZ a, Matrix m) => m a -> [[Char]]Source

(***) :: (t -> t2) -> (t1 -> t3) -> (t, t1) -> (t2, t3)Source

data Dimension Source

Constructors

XD 
YD 

quad :: (AbelianGroup a, Matrix m) => m a -> m a -> m a -> m a -> m aSource

type Extent = (Int, Int)Source

ext :: Dimension -> (t, t) -> tSource

glueExt :: (AbelianGroup t, AbelianGroup t1) => Dimension -> (t, t1) -> (t, t1) -> (t, t1)Source

splitExt :: Num t => Dimension -> t -> (t, t) -> ((t, t), (t, t))Source

class Matrix m whereSource

Methods

at :: AbelianGroupZ a => Int -> Int -> m a -> aSource

extent :: m a -> ExtentSource

singleton :: AbelianGroupZ a => a -> m aSource

Sigleton matrix

glue :: AbelianGroup a => Dimension -> m a -> m a -> m aSource

split :: AbelianGroupZ a => Dimension -> Int -> m a -> (m a, m a)Source

zeroMatrix :: AbelianGroup a => Int -> Int -> m aSource

Instances

Matrix m => Matrix (O Pair m) 

(<|>) :: (AbelianGroup a, Matrix m) => m a -> m a -> m aSource

(<->) :: (AbelianGroup a, Matrix m) => m a -> m a -> m aSource

countRows :: Matrix m => m a -> IntSource

chopLastColumn :: (AbelianGroupZ a, Matrix m) => m a -> m aSource

firstRow :: (AbelianGroupZ a, Matrix m) => m a -> m aSource

lastColumn :: (AbelianGroupZ a, Matrix m) => m a -> m aSource

chopLastRow :: (AbelianGroupZ a, Matrix m) => m a -> m aSource

chopFirstRow :: (AbelianGroupZ a, Matrix m) => m a -> m aSource