lapack-0.3: Numerical Linear Algebra using LAPACK

Safe HaskellNone

Numeric.LAPACK.Permutation

Synopsis

Documentation

data Permutation sh Source

Instances

(Show sh, C sh) => Show (Permutation sh) 
Box (Permutation sh) 
(C sh, Eq sh) => MultiplySame (Permutation sh) 
C sh => FormatMatrix (Permutation sh) 
C sh => Format (Permutation sh) 
Indexed size => Indexed (Permutation size) 
C shape => Power (Permutation shape) 
C shape => MultiplySquare (Permutation shape) 
C shape => MultiplyVector (Permutation shape) 
C shape => Inverse (Permutation shape) 
C shape => Solve (Permutation shape) 
C shape => Determinant (Permutation shape) 
C sh => SquareShape (Permutation sh) 
C shape => Complex (Permutation shape) 
(C shapeA, Eq shapeA, ~ * shapeA shapeB, C shapeB) => Multiply (Permutation shapeA) (Permutation shapeB) 
(Show sh, C sh) => Show (Matrix (Permutation sh) a) 

newtype Shape sh Source

Constructors

Shape sh 

Instances

Eq sh => Eq (Shape sh) 
Show sh => Show (Shape sh) 
C sh => C (Shape sh) 
C sh => Indexed (Shape sh) 
C sh => InvIndexed (Shape sh) 

newtype Element sh Source

Constructors

Element CInt 

Instances

Eq (Element sh) 
Show (Element sh) 
Storable (Element sh) 

identity :: C sh => sh -> Permutation shSource

toMatrix :: (C sh, Floating a) => Permutation sh -> Square sh aSource

data Sign Source

Constructors

Positive 
Negative 

Instances

numberFromSign :: Floating a => Sign -> aSource

 numberFromSign s == (-1)^fromEnum s

multiply :: (C sh, Eq sh) => Permutation sh -> Permutation sh -> Permutation shSource

apply :: (C vert, C horiz, C height, Eq height, C width, Floating a) => Inversion -> Permutation height -> Full vert horiz height width a -> Full vert horiz height width aSource