Modulematrices-0.5.0Haskell2010
Data.Matrix.Unboxed
Contents
Synopsis
- type Matrix
- value dim
- value rows
- value cols
- value unsafeIndex
- value !
- value takeRow
- value takeColumn
- value takeDiag
- value unsafeFromVector
- value fromVector
- value matrix
- value fromList
- value fromLists
- value fromRows
- value fromColumns
- value empty
- value flatten
- value toRows
- value toColumns
- value toList
- value toLists
- value tr
- value subMatrix
- value ident
- value diag
- value diagRect
- value fromBlocks
- value isSymmetric
- value force
- value foldl
- value map
- value imap
- value mapM
- value imapM
- value mapM_
- value imapM_
- value forM
- value forM_
- value zipWith
- value zipWith3
- value zipWith4
- value zipWith5
- value zipWith6
- value izipWith
- value izipWith3
- value izipWith4
- value izipWith5
- value izipWith6
- value zip
- value zip3
- value zip4
- value zip5
- value zip6
- value zipWithM
- value zipWithM_
- value unzip
- value unzip3
- value unzip4
- value unzip5
- value unzip6
- value generate
- value thaw
- value unsafeThaw
- value freeze
- value unsafeFreeze
- value create
- Packagematrices-0.5.0
- Exports67
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceUnboxed.hs
Accessors
length information
Indexing
Construction
O(m*n) Matrix construction
O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
O(m*n) Create matrix from rows
O(m*n) Create matrix from columns
Conversions
O(m) Return the rows
O(m*n) Create a list by concatenating rows
O(m*n) List of lists
O(m*n) Matrix transpose
subMatrix O(1) Extract sub matrix
O(m*n) Create an identity matrix
O(m*n) Create a square matrix with given diagonal, other entries default to 0
diagRect O(m*n) Create a rectangular matrix with default values and given diagonal
Mapping
Monadic mapping
O(m*n) Apply the monadic action to every element and its index, yielding a matrix of results.
O(m*n) Apply the monadic action to every element and its index, ignoring the results.