HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduledense-linear-algebra-0.1.0.0Haskell2010

Statistics.Matrix.Mutable

Basic mutable matrix operations.

  • 2 types
  • 10 values
valuebounds :: MMatrix s -> Int -> Int -> (MVector s -> Int -> r) -> r
#

Given row and column numbers, calculate the offset into the flat row-major vector.

valueunsafeNew
  1. :: Int

    Number of row

  2. -> Int

    Number of columns

  3. -> ST s (MMatrix s)
#

Allocate new matrix. Matrix content is not initialized hence unsafe.

valueunsafeBounds :: MMatrix s -> Int -> Int -> (MVector s -> Int -> r) -> r
#

Given row and column numbers, calculate the offset into the flat row-major vector, without checking.