crates.io Build status

Documentation

alga − abstract algebra for Rust ======== **alga** aims to provide solid mathematical abstractions to algebra-focused applications. It defines and organizes through trait inheritance the basic building blocks of general algebraic structures. Specific implementations of algebraic structure traits are left to other crates. Higher-level traits for specialized domains of algebra (like linear algebra) are also provided and will prove useful for applications that include code that is generic wrt. the algebraic entity types. Examples of types that could derive from traits defined in **alga**: - Integers, reals and rationals numbers - Complex numbers - Polynomials - Matrices and vectors - Quaternions and octonians - Strings under concatenation **alga** started as a fork of [algebra](https://crates.io/crates/algebra). ## References ### Interesting papers - [The Scratchpad II Type System: Domains and Subdomains](http://www.csd.uwo.ca/~watt/pub/reprints/1990-miola-spadtypes.pdf) - [Fundamental Algebraic Concepts in Concept-Enabled C++](ftp://cgi.cs.indiana.edu/pub/techreports/TR638.pdf) ### Inspiring Libraries - [Numeric Prelude](http://www.haskell.org/haskellwiki/Numeric_Prelude) (Haskell) - Edward A. Kmett's [algebra package](http://hackage.haskell.org/package/algebra-3.1) (Haskell) - [YAP: Yet Another Prelude](http://hackage.haskell.org/package/yap) (Haskell) - Agda's [algebra module](http://www.cse.chalmers.se/~nad/listings/lib-0.7/Algebra.html) (Agda) - Idris' [algebra module](https://github.com/idris-lang/Idris-dev/blob/master/libs/prelude/Prelude/Algebra.idr) (Idris) - Felix's [algebra module](http://felix-lang.org/$/usr/local/lib/felix/felix-latest/share/lib/std/algebraic.flx) (Felix) - [non/spire](https://github.com/non/spire) (Scala)