Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Matrix a
- unMatrix :: Matrix a -> Vector (Vector a)
- makeMatrix :: Vector (Vector a) -> Maybe (Matrix a)
- makeMatrix' :: Vector (Vector a) -> Matrix a
- matsize :: Matrix a -> (Int, Int)
- matsize' :: Vector (Vector a) -> (Int, Int)
- matcheck :: Vector (Vector a) -> Bool
- matzero :: Num a => Int -> Matrix a
- matone :: Num a => Int -> Matrix a
- matadd :: Num a => Matrix a -> Matrix a -> Matrix a
- matmul :: Num a => Matrix a -> Matrix a -> Matrix a
- matap :: Num a => Matrix a -> Vector a -> Vector a
- matscalar :: Num a => a -> Matrix a -> Matrix a
- matpow :: (Show a, Num a) => Matrix a -> Integer -> Matrix a
Documentation
Matrix
is data for matrices.
It is guaranteed that internal arrays are not jagged arrays.
matadd :: Num a => Matrix a -> Matrix a -> Matrix a Source #
matadd
calculates the addition \(A + B\) of two matrices \(A, B\).
This assumes sizes of inputs match.
matmul :: Num a => Matrix a -> Matrix a -> Matrix a Source #
matmul
calculates the multiplication \(A B\)of two matrices \(A, B\).
This assumes sizes of inputs match.