Additive ring
Vector space
Hilbert space (inner product)
Normed vector space
Norms and related results
squared 2-norm
L1 norm
Euclidean norm
Lp norm (p > 0)
infinity-norm
normalize w.r.t. p-norm (p finite)
Lp inner product (p > 0)
reciprocal
scale
FiniteDim : finite-dimensional objects
HasData : accessing inner data (do not export)
Sparse : sparse datastructures
Set : things that behave as sets (e.g. of which we can take the union and the intersection)
IntMap implementation
Sparse Vector
instances for SpVector
Create new sparse vector
Outer vector product
Sparse Matrix
Instances for SpMatrix
multiply matrix by a scalar
Frobenius norm (sqrt of trace of M^T M)
MATRIX METADATA
predicates
Non-zero elements in a row
bandwidth bounds (min, max)
SPARSE MATRIX BUILDERS
Diagonal matrix
Identity matrix
Create Super- or sub- diagonal matrix
SUB-MATRICES
Extract jth column
Extract ith row
MATRIX STACKING
MATRIX ELEMENT LOOKUP
MISC SpMatrix OPERATIONS
sparsify : remove 0s (!!!)
ROUNDING operations (!!!)
ALGEBRAIC PRIMITIVE OPERATIONS
Matrix transpose
matrix action on a vector
Matrix-matrix product
Matrix-matrix product, sparsified (prunes all elements x for which `abs x <= eps`)
Predicates
Condition number
Householder transformation
Givens rotation matrix
QR decomposition
Eigenvalue algorithms
All eigenvalues using QR algorithm
One eigenvalue and corresponding eigenvector, using Rayleigh iteration
Householder vector (G & VL Alg. 5.1.1, function house)
SVD
LINEAR SOLVERS : solve A x = b
CGS
BiCSSTAB
LINEAR SOLVERS INTERFACE
PRETTY PRINTING
Pretty printer typeclass