HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

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.