Module

Data.Matrix.Transformations

Package
purescript-sized-matrices
Repository
csicar/purescript-sized-matrices

#transpose Source

transpose :: forall a h w. Nat h => Nat w => Matrix h w a -> Matrix w h a

#deleteRowUnsafe Source

deleteRowUnsafe :: forall h h' w a. Nat w => Nat h => Nat h' => Succ h' h => Int -> Matrix h w a -> Matrix h' w a

#deleteRow Source

deleteRow :: forall h h' w i a. Nat w => Nat h => Nat h' => Nat i => Succ h' h => Lt i h => i -> Matrix h w a -> Matrix h' w a

#deleteColumn Source

deleteColumn :: forall h w w' i a. Nat w => Nat h => Nat w' => Nat i => Succ w' w => Lt i w => i -> Matrix h w a -> Matrix h w' a

#resize Source

resize :: forall h w h' w' a. Nat h => Nat w => Nat h' => Nat w' => LtEq h' h => LtEq w' w => Matrix h w a -> Matrix h' w' a

#swapRow Source

swapRow :: forall h w a. Nat h => Nat w => Int -> Int -> Matrix h w a -> Matrix h w a

#mkPermutation Source

mkPermutation :: forall h w a. CommutativeRing a => Nat h => Nat w => (Int -> Int) -> Matrix h w a