#vector #matrix #math #algebra #min-const-generics

no-std vecmat

Low-dimensional vector algebra with min_const_generics support

21 unstable releases (5 breaking)

0.7.3 Apr 30, 2021
0.6.6 Apr 20, 2021
0.6.2 Feb 21, 2021
0.6.0 Dec 21, 2020
0.2.1 May 18, 2017

#50 in Math

Download history 36/week @ 2021-01-13 15/week @ 2021-01-20 8/week @ 2021-01-27 6/week @ 2021-02-03 49/week @ 2021-02-10 61/week @ 2021-02-17 11/week @ 2021-02-24 14/week @ 2021-03-03 5/week @ 2021-03-10 5/week @ 2021-03-17 58/week @ 2021-03-24 51/week @ 2021-03-31 44/week @ 2021-04-07 67/week @ 2021-04-14 105/week @ 2021-04-21 76/week @ 2021-04-28

163 downloads per month
Used in physsol

MIT/Apache

205KB
6.5K SLoC

vecmat

Crates.io Docs.rs Travis CI Appveyor Codecov.io License

Low-dimensional vector algebra with min_const_generics support.

Rust 1.51 or higher requred because of min_const_generics feature.

Cargo features

  • std - use std. Crate could be used with no_std.
  • rand - distributions for generating random entities.
  • approx - approximate comparison.

All these features are enabled by default.

Documentation

Content

Primitives

  • Vector.
  • Matrix.
  • Complex and Quaternion.

Transformations

  • Shift.
  • Linear.
  • Affine.
  • Rotation2 and Rotation3.
  • Moebius (over Complex and Quaternion).

Functionality

Implemented

  • min_const_generics support.
  • Vector and matrix arithmetcs (+, -, *, /, %).
  • Integer vectors and matrices (including div_floor, mod_floor and bitwise).
  • Boolean vectors and matrices (comparison, all, any).
  • Support for non-Copy (and non-Clone) elements.
  • into_iter() for vectors (and map, zip, unzip, fold, scan, etc.).
  • dot, cross and outer products for vectors.
  • Matrix-matrix and matrix-vector multiplication.
  • Square matrix determinant and inversion.

Planning

  • Eigen- and singular decomposition for matrices.
  • Rotation4.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~20K SLoC