[linear algebra] hmatrix
hmatrix is a linear algebra library and matrix computations.
Example code:
-- Creating matrices
r <- randn 2 2
r -- [ 0.7668461757288327, 0.5573308002071669
-- , -0.7412791132378888, 1.001032678483079 ]
-- SVD
(u, s, v) = svd r
(u, s, v) = thinSVD r
eigenvalues r
singularValues r
nullspace r
orthogonal r
determinant r
Notes:
- Uses the vector library under the hood (specifically,
Data.Vector.Storable
)