| Copyright | (c) Artur M. Brodzki 2018 |
|---|---|
| License | BSD3 |
| Maintainer | artur@brodzki.org |
| Stability | experimental |
| Portability | Windows/POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Multilinear.Matrix
Contents
Description
- This module provides convenient constructors that generates a matrix (finitely- or infinite-dimensional)
- Finitely-dimensional matrices provide much greater performance than infinitely-dimensional
Generators
Arguments
| :: (Num a, Unbox a, Multilinear t a) | |
| => String | Indices names (one character per index, first character: rows index, second character: columns index) |
| -> Int | Number of matrix rows |
| -> Int | Number of matrix columns |
| -> (Int -> Int -> a) | Generator function - returns a matrix component at |
| -> t a | Generated matrix |
Generate matrix as function of its indices
Arguments
| :: (Num a, Unbox a, Multilinear t a) | |
| => String | Indices names (one character per index, first character: rows index, second character: columns index) |
| -> Int | Number of matrix rows |
| -> Int | Number of matrix columns |
| -> a | Value of matrix components |
| -> t a | Generated matrix |
Generate matrix with all components equal to v