eigen-1.2.1: Eigen C++ library (linear algebra: matrices, vectors, numerical solvers).

Safe HaskellNone
LanguageHaskell98

Data.Eigen.Matrix.Mutable

Synopsis

Documentation

data MMatrix s Source

Mutable matrix. You can modify elements

Constructors

MMatrix 

new :: PrimMonad m => Int -> Int -> m (MMatrix (PrimState m)) Source

Creates a mutable matrix of the given dimension. Elements are initialized with 0.

set :: PrimMonad m => MMatrix (PrimState m) -> Double -> m () Source

Set all elements of the matrix to the given value

read :: PrimMonad m => MMatrix (PrimState m) -> Int -> Int -> m Double Source

Yield the element at the given position.

write :: PrimMonad m => MMatrix (PrimState m) -> Int -> Int -> Double -> m () Source

Replace the element at the given position.