jonathanfishbein1 / linear-algebra / DoublyStochasticMatrix

A module for Doubly Stochastic Matrix

Types


type DoublyStochasticMatrix
    = DoublyStochasticMatrix (SquareMatrix (Real Basics.Float))

Doubly Stochastic Matrix type

Matrix Predicates and Properties

isDoublyStochastic : SquareMatrix (Real Basics.Float) -> Result String (SquareMatrix (Real Basics.Float))

Predicate if matrix is doubly stochastic

Binary Operations

multiply : DoublyStochasticMatrix -> DoublyStochasticMatrix -> DoublyStochasticMatrix

Square Matrix Square Matrix multiplication

multiplyIfCan : DoublyStochasticMatrix -> DoublyStochasticMatrix -> Result String DoublyStochasticMatrix

Doubly Stochastic Matrixx Doubly Stochastic Matrix multiplication

Manipulation

setAt : ( Basics.Int, Basics.Int ) -> Real Basics.Float -> DoublyStochasticMatrix -> DoublyStochasticMatrix

Set the value in a Doubly Stochastic Matrix at the specified row and column