qfall_math/rational.rs
1// Copyright © 2023 Marcel Luca Schmidt
2//
3// This file is part of qFALL-math.
4//
5// qFALL-math is free software: you can redistribute it and/or modify it under
6// the terms of the Mozilla Public License Version 2.0 as published by the
7// Mozilla Foundation. See <https://mozilla.org/en-US/MPL/2.0/>.
8
9//! Rational-based types based on [`Q`].
10//!
11//! This module contains the type [`Q`] for rationals with arbitrary length and
12//! constructions over it.
13//! Each struct provides examples regarding usage.
14//! In general you can mix [`Q`]'s with any type of rust integer, whenever the
15//! corresponding method takes as input integers of type [`Into<Q>`],
16//! e.g. the standard rust integers or tuples of standard rust integers.
17
18mod mat_q;
19mod poly_over_q;
20mod q;
21
22pub use mat_q::MatQ;
23pub use poly_over_q::PolyOverQ;
24pub use q::Q;