Matrix package:massiv

Type synonym for a two-dimentsional array, or simply a matrix.
Create an indentity matrix.

Example

>>> import Data.Massiv.Array

>>> identityMatrix 5
Array DL Seq (Sz (5 :. 5))
[ [ 1, 0, 0, 0, 0 ]
, [ 0, 1, 0, 0, 0 ]
, [ 0, 0, 1, 0, 0 ]
, [ 0, 0, 0, 1, 0 ]
, [ 0, 0, 0, 0, 1 ]
]
Multiply matrix by a column vector. Same as .>< but returns computed version of a vector Throws Exception: SizeMismatchException when inner dimensions of arrays do not match.
Multiply a row vector by a matrix. Same as ><. but returns computed vector instead of a delayed one. Throws Exception: SizeMismatchException when inner dimensions of arrays do not match.
Type synonym for a two-dimentsional mutable array, or simply a mutable matrix.