We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3222167 + 9a138e9 commit 3614c62Copy full SHA for 3614c62
mvpoly/src/monomials.rs
@@ -16,6 +16,16 @@ use std::{
16
/// Represents a multivariate polynomial in `N` variables with coefficients in
17
/// `F`. The polynomial is represented as a sparse polynomial, where each
18
/// monomial is represented by a vector of `N` exponents.
19
+///
20
+/// For instance, the multivariate polynomial `3x^2 y + 2 x z` will be
21
+/// represented by the HashMap:
22
+/// ```text
23
+/// [2, 1, 0] -> 3
24
+/// | | |
25
+/// x y z
26
27
+/// [1, 0, 1] -> 2
28
+/// ```
29
// We could use u8 instead of usize for the exponents
30
// FIXME: the maximum degree D is encoded in the type to match the type
31
// prime::Dense
0 commit comments