Skip to main content

a/math/
mod.rs

1//! Mathematics.
2//!
3//! * [`complex`]: complex numbers with `f32` or `f64` parts, their arithmetic with `+`, `-`, `*`
4//!   and `/`, and their absolute values, arguments, exponentials, logarithms, square roots and
5//!   powers.
6//! * [`ec`]: elliptic curves over prime fields in Weierstrass, Montgomery and Edwards form, whose
7//!   points add with `+`, subtract with `-` and multiply by a number with `*`, and the curves in
8//!   common use; on numbers, and not constant-time.
9//! * [`matrix`]: matrices of floats, complex numbers or numbers, their arithmetic with `+`, `-`
10//!   and `*`, transposes, row and column operations, determinants, decompositions, eigenvalues
11//!   and functions of matrices.
12//! * [`numbers`]: integers of any size, stored as a sign and the bytes of the absolute value
13//!   in either byte order; they add with `+` and `+=`, subtract with `-` and `-=`, multiply
14//!   with `*` and `*=`, divide with `/`, `/=`, `%` and `%=`, shift with `<<`, `>>`, `<<=` and
15//!   `>>=`, and are written and read as text in any radix from 2 to 36.
16
17pub mod complex;
18pub mod ec;
19pub mod matrix;
20pub mod numbers;