bed-and-breakfast: Efficient Matrix operations in 100% Haskell.

[ library, linear-algebra, math, mit, numeric ] [ Propose Tags ]

Efficient Matrix operations in 100% Haskell.

Initial version, features det, basic arithmetic operations, and instances for Float, Double, Complex, and Rational.
Fixed wrong algorithm for computing the inverse of a Matrix.
Added instances for Num Matrix, Fractional Matrix, and Eq Matrix.
inv is now a total function and will no longer call error if a matrix is not invertible. Also Matrix derives Data.Typeable now.
Added scale, and methods for joining matrices vertically and horizontally. Corrected a bug in isUnit reported by Charles Durham. isUnit returned True for any matrix for which all (== 1) . trace would have, which is wrong).
A little bit more documentation. Also moved some functions (isXXX) away from the type class MatrixElement. Properly flagged the package as experimental (was improperly marked as stable, copied form a template).
Added cofactors, adjugate, minor, and minorMatrix.
rank works now for any Matrix component type.
Added Read instance for Matrix. Improved on documentation.
Added a QuickCheck test suite, fixed a bug in det (det would crash for singular matrices, where it should return 0).
Added TemplateHaskell syntactic sugar (see Numeric.Matrix.Sugar). Rewrote multiplication. matrix function build an array faster now.
Numeric.Matrix.Sugar was not mentioned in the cabal file. Improved test suite. Improved documentation.
Fixed a bug regarding empty and fromList. Use unsafe operations where it is safe for speed. Added RULES. Added an instance for binary.
The unsafe operations used in v0.4 turned out to fatally fail on certain platforms. Revoked this change.
Fixed a tiny bug regarding the row function for extracting the number of rows in a Matrix. Thanks to Tim Makarios for finding and fixing the bug.
Versions [faq] 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.3, 0.3.1, 0.3.2, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.5
Dependencies array (>=0.4), base (>=4.5 && <4.7), binary (>=0.5), deepseq (>=1.3), template-haskell (>=2.7) [details]
License MIT
Author Julian Fleischer <>
Maintainer Julian Fleischer <>
Revised Revision 1 made by AdamBergmark at Sun May 3 12:21:23 UTC 2015
Category Numeric, Math, Linear Algebra
Home page
Source repo head: git clone
Uploaded by JulianFleischer at Wed Jan 15 03:53:38 UTC 2014
Distributions NixOS:0.5
Downloads 10938 total (487 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Successful builds reported [all 1 reports]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees