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

no-std vecmat

Low-dimensional vector algebra with min_const_generics support

26 releases

0.7.8 Apr 21, 2022
0.7.7 May 27, 2021
0.7.3 Apr 30, 2021
0.6.2 Feb 21, 2021
0.2.1 May 18, 2017

#100 in Math

Download history 15/week @ 2022-11-28 28/week @ 2022-12-05 58/week @ 2022-12-12 33/week @ 2022-12-19 19/week @ 2022-12-26 10/week @ 2023-01-02 24/week @ 2023-01-09 16/week @ 2023-01-16 48/week @ 2023-01-23 52/week @ 2023-01-30 59/week @ 2023-02-06 101/week @ 2023-02-13 105/week @ 2023-02-20 5/week @ 2023-02-27 33/week @ 2023-03-06 8/week @ 2023-03-13

162 downloads per month
Used in 2 crates

MIT/Apache

215KB
7K SLoC

vecmat

Crates.io Docs.rs Github Actions License

Low-dimensional vector algebra with const generics support.

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
~21K SLoC