HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulematrices-0.5.0Haskell2010

Data.Matrix.Class

Contents
  1. Derived mothods
Synopsis
  • 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

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