HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulematrices-0.5.0Haskell2010

Data.Matrix.Class

  • 1 class
  • 16 values
  • Packagematrices-0.5.0
  • Exports18
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceClass.hs
classclass (MMatrix (Mutable m) (Mutable v) a, Vector v a) => Matrix (m :: (Type -> Type) -> Type -> Type) (v :: Type -> Type) a where
#

Methods

Instances3Matrix

Derived mothods

16 declarations
valuerows :: Matrix m v a => m v a -> Int
#

Derived methods

Return the number of rows

valuecols :: Matrix m v a => m v a -> Int
#

Return the number of columns

valuetoList :: Matrix m v a => m v a -> [a]
#

O(m*n) Create a list by concatenating rows

valuefromLists :: Matrix m v a => [[a]] -> m v a
#

O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix

valuematrix
  1. :: Matrix m v a
  2. => Int

    number of columns

  3. -> [a]

    row list

  4. -> m v a
#

O(m*n) Matrix construction

valuefromRows :: Matrix m v a => [v a] -> m v a
#

O(m*n) Create matrix from rows

valuetoRows :: Matrix m v a => m v a -> [v a]
#

O(m) Return the rows

valuetoLists :: Matrix m v a => m v a -> [[a]]
#

O(m*n) List of lists