#linear #algebra #matrix #vector #math

nightly aljabar

A super generic, super experimental linear algebra library

17 releases (1 stable)

✓ Uses Rust 2018 edition

new 1.0.0 May 29, 2020
0.5.0 Apr 26, 2020
0.4.2 Dec 8, 2019
0.4.1 Sep 19, 2019
0.3.1 Jul 30, 2019

#47 in Math

Download history 18/week @ 2020-02-09 16/week @ 2020-02-16 73/week @ 2020-02-23 2/week @ 2020-03-01 31/week @ 2020-03-08 15/week @ 2020-03-15 78/week @ 2020-03-22 1/week @ 2020-03-29 31/week @ 2020-04-05 77/week @ 2020-04-12 14/week @ 2020-04-26 2/week @ 2020-05-03 17/week @ 2020-05-10 2/week @ 2020-05-17 29/week @ 2020-05-24

96 downloads per month

MIT/Apache

130KB
3K SLoC

aljabar

Build Status Documentation Version Downloads

An experimental n-dimensional linear algebra and mathematics library for computer graphics, designed to be roughly compatible with cgmath.

The library provides:

  • vectors: Vector2, Vector3, Vector4 and Vector<T, const N: usize>
  • points: Point2, Point3, Point4 and Point<T, const N: usize>
  • matrices: Matrix2, Matrix3, Matrix4 and Matrix<T, const N: usize, const M: usize>
  • a quaternion type: Quaternion
  • orthonormal (rotation) matrices: Orthonormal

aljabar supports Vectors and Matrices of any size and will provide implementations for any mathematic operations that are supported by their scalars. Additionally, aljabar can leverage Rust's type system to ensure that operations are only applied to values that are the correct size.

aljabar relies heavily on unstable Rust features such as const generics and thus requires nightly to build.

For more information and a guide on getting started, check out the documentation.

Cargo Features

  • The mint feature (off by default) adds a dependency to the mint crate and provides support for converting between aljabar types and mint types.
  • The serde feature (off by default) adds serialization/deserialization support from the serde crate.
  • The rand feature (off by default) allows you to create random points, vectors, and matrices by sampling from a random number source.
  • The swizzle feature (off by default) enables swizzle functions for vectors.

Contributions

Pull request of any nature are welcome, especially regaring performance improvements. Although a aljabar is generic with respect to dimensionality, algorithms specialized for certain dimensions are straightforward to add and are intended to replace the generic algorithms along the most common code paths in the future.

Support

Contact the author at map@maplant.com or file an issue on github.

Dependencies

~0.5–1MB
~22K SLoC