Safe Haskell | None |
---|---|
Language | Haskell2010 |
- rowAdd :: Elem a b => (a, Int) -> (a, Int) -> Matrix a b -> Matrix a b
- colAdd :: Elem a b => (a, Int) -> (a, Int) -> Matrix a b -> Matrix a b
- scaleRow :: Elem a b => Int -> a -> Matrix a b -> Matrix a b
- scaleCol :: Elem a b => Int -> a -> Matrix a b -> Matrix a b
- fromList' :: Elem a b => Int -> [a] -> Matrix a b
- hstack :: Elem a b => [Matrix a b] -> Matrix a b
- vstack :: Elem a b => [Matrix a b] -> Matrix a b
- delRow :: Elem a b => Int -> Matrix a b -> Matrix a b
- delRows :: Elem a b => [Int] -> Matrix a b -> Matrix a b
- delCol :: Elem a b => Int -> Matrix a b -> Matrix a b
- delCols :: Elem a b => [Int] -> Matrix a b -> Matrix a b
- kronecker :: Elem a b => Matrix a b -> Matrix a b -> Matrix a b
Documentation
rowAdd :: Elem a b => (a, Int) -> (a, Int) -> Matrix a b -> Matrix a b Source #
rowAdd row r1 = k1 * row r1 + k2 * row r2
colAdd :: Elem a b => (a, Int) -> (a, Int) -> Matrix a b -> Matrix a b Source #
colAdd col c1 = k1 * col c1 + k2 * col c2
fromList' :: Elem a b => Int -> [a] -> Matrix a b Source #
Alternative implementation of fromList. It accepts a flatten list of elements and number of columns. No tests are performed to check if number of elements in list are sufficient.