@@ -66,7 +66,7 @@ pub type ModInt1000000007 = StaticModInt<Mod1000000007>;
66
66
pub type ModInt998244353 = StaticModInt < Mod998244353 > ;
67
67
pub type ModInt = DynamicModInt < DefaultId > ;
68
68
69
- /// Represents _ℤ/mℤ_ where _m_ is a constant value.
69
+ /// Represents $\mathbb{Z}/m\mathbb{Z}$ where $m$ is a constant value.
70
70
///
71
71
/// Corresponds to `atcoder::static_modint` in the original ACL.
72
72
///
@@ -249,7 +249,7 @@ pub trait Modulus: 'static + Copy + Eq {
249
249
fn butterfly_cache ( ) -> & ' static LocalKey < RefCell < Option < ButterflyCache < Self > > > > ;
250
250
}
251
251
252
- /// Represents _1000000007_ .
252
+ /// Represents $1000000007$ .
253
253
#[ derive( Copy , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , Debug ) ]
254
254
pub enum Mod1000000007 { }
255
255
@@ -265,7 +265,7 @@ impl Modulus for Mod1000000007 {
265
265
}
266
266
}
267
267
268
- /// Represents _998244353_ .
268
+ /// Represents $998244353$ .
269
269
#[ derive( Copy , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , Debug ) ]
270
270
pub enum Mod998244353 { }
271
271
@@ -287,7 +287,7 @@ pub struct ButterflyCache<M> {
287
287
pub ( crate ) sum_ie : Vec < StaticModInt < M > > ,
288
288
}
289
289
290
- /// Represents _ℤ/mℤ_ where _m_ is a dynamic value.
290
+ /// Represents $\mathbb{Z}/m\mathbb{Z}$ where $m$ is a dynamic value.
291
291
///
292
292
/// Corresponds to `atcoder::dynamic_modint` in the original ACL.
293
293
///
@@ -456,7 +456,7 @@ impl Id for DefaultId {
456
456
}
457
457
}
458
458
459
- /// Pair of _m_ and _ceil(2⁶⁴/m)_ .
459
+ /// Pair of $m$ and $\lceil 2^{64}/m \rceil$ .
460
460
pub struct Barrett {
461
461
m : AtomicU32 ,
462
462
im : AtomicU64 ,
@@ -687,7 +687,7 @@ pub trait ModIntBase:
687
687
688
688
/// A trait for `{StaticModInt, DynamicModInt, ModIntBase}::new`.
689
689
pub trait RemEuclidU32 {
690
- /// Calculates `self` _mod_ `modulus` losslessly.
690
+ /// Calculates `self` $\bmod$ `modulus` losslessly.
691
691
fn rem_euclid_u32 ( self , modulus : u32 ) -> u32 ;
692
692
}
693
693
0 commit comments