Skip to content

Commit 69adb3e

Browse files
authored
Merge pull request #124 from qryxip/use-katex-for-modint
2 parents 189de2b + f0b95d0 commit 69adb3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/modint.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub type ModInt1000000007 = StaticModInt<Mod1000000007>;
6666
pub type ModInt998244353 = StaticModInt<Mod998244353>;
6767
pub type ModInt = DynamicModInt<DefaultId>;
6868

69-
/// Represents _ℤ/mℤ_ where _m_ is a constant value.
69+
/// Represents $\mathbb{Z}/m\mathbb{Z}$ where $m$ is a constant value.
7070
///
7171
/// Corresponds to `atcoder::static_modint` in the original ACL.
7272
///
@@ -249,7 +249,7 @@ pub trait Modulus: 'static + Copy + Eq {
249249
fn butterfly_cache() -> &'static LocalKey<RefCell<Option<ButterflyCache<Self>>>>;
250250
}
251251

252-
/// Represents _1000000007_.
252+
/// Represents $1000000007$.
253253
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]
254254
pub enum Mod1000000007 {}
255255

@@ -265,7 +265,7 @@ impl Modulus for Mod1000000007 {
265265
}
266266
}
267267

268-
/// Represents _998244353_.
268+
/// Represents $998244353$.
269269
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]
270270
pub enum Mod998244353 {}
271271

@@ -287,7 +287,7 @@ pub struct ButterflyCache<M> {
287287
pub(crate) sum_ie: Vec<StaticModInt<M>>,
288288
}
289289

290-
/// Represents _ℤ/mℤ_ where _m_ is a dynamic value.
290+
/// Represents $\mathbb{Z}/m\mathbb{Z}$ where $m$ is a dynamic value.
291291
///
292292
/// Corresponds to `atcoder::dynamic_modint` in the original ACL.
293293
///
@@ -456,7 +456,7 @@ impl Id for DefaultId {
456456
}
457457
}
458458

459-
/// Pair of _m_ and _ceil(2⁶⁴/m)_.
459+
/// Pair of $m$ and $\lceil 2^{64}/m \rceil$.
460460
pub struct Barrett {
461461
m: AtomicU32,
462462
im: AtomicU64,
@@ -687,7 +687,7 @@ pub trait ModIntBase:
687687

688688
/// A trait for `{StaticModInt, DynamicModInt, ModIntBase}::new`.
689689
pub trait RemEuclidU32 {
690-
/// Calculates `self` _mod_ `modulus` losslessly.
690+
/// Calculates `self` $\bmod$ `modulus` losslessly.
691691
fn rem_euclid_u32(self, modulus: u32) -> u32;
692692
}
693693

0 commit comments

Comments
 (0)