Expand description
mathematical datas
ModulesΒ§
- arbitrary_
mod_ πbinomial - berlekamp_
massey π - bitwise_
transform π - bitwiseand_
convolve π - bitwiseor_
convolve π - bitwisexor_
convolve π - black_
box_ πmatrix - convolve_
steps π - discrete_
logarithm π - factorial π
- fast_
fourier_ πtransform - floor_
sum π - formal_
power_ πseries - garner π
- gcd π
- gcd_
convolve π - lagrange_
interpolation π - lcm_
convolve π - linear_
congruence π - linear_
diophantine π - matrix π
- miller_
rabin π - mint_
matrix π - mod_
sqrt π - number_
theoretic_ πtransform - polynomial π
- pow_
prec π - prime π
- prime_
factors π - prime_
list π - prime_
table π - primitive_
root π - quotient_
array π - relaxed_
convolution π - subset_
convolve π
StructsΒ§
- Arbitrary
ModBinomial - Bitwiseand
Convolve - Bitwiseor
Convolve - Bitwisexor
Convolve - Black
BoxMatrix Impl - Convolve
- Euler
PhiTable - Formal
Power Series - Garner
- Garnerβs algorithm with precomputation for fixed moduli.
- GcdConvolve
- LcmConvolve
- Matrix
- Memorized
Factorial - Online
Subset Mobius Transform - Online
Subset Zeta Transform - Online
Superset Mobius Transform - Online
Superset Zeta Transform - Polynomial
- PowPrec
- Prime
List - Prime
Table - Quotient
Array - store with index ${\lfloor\frac{n}{i}\rfloor \mid i=1,2,\ldots,n}$
- Relaxed
Convolution - Sparse
Matrix - Subset
Convolve
EnumsΒ§
TraitsΒ§
- Black
BoxM IntMatrix - Black
BoxMatrix - Convolve
Steps - Formal
Power Series Coefficient - Formal
Power Series Coefficient Sqrt - MInt
Matrix - NttReuse
FunctionsΒ§
- berlekamp_
massey - bitwise_
transform - check_
primitive_ root - discrete_
logarithm - a^x β‘ b (mod n)
- discrete_
logarithm_ prime_ mod - divisors
- euler_
phi - extgcd
- extgcd_
binary - extgcd_
recurse - floor_
power_ sum - $$\sum_{i=0}^{n-1}x^iy^{\left\lfloor\frac{a\times i+b}{m}\right\rfloor}$$
- floor_
sum - Sum of Floor of Linear mod 2^64
- floor_
sum_ i64 - Sum of Floor of Linear mod 2^64
- floor_
sum_ polynomial - $$\sum_{i=0}^{n-1}i^X\left\lfloor\frac{a\times i+b}{m}\right\rfloor^Y$$
- floor_
sum_ polynomial_ i64 - $$\sum_{i=l}^{r-1}i^X\left\lfloor\frac{a\times i+b}{m}\right\rfloor^Y$$
- floor_
sum_ range_ freq - gcd
- binary gcd
- gcd_
loop - highly_
composite_ number - [(hcn, #divisor)]
- lagrange_
interpolation - lagrange_
interpolation_ polynomial - lcm
- miller_
rabin - miller_
rabin_ with_ br - modinv
- modinv_
extgcd_ binary - 0 < a < p, gcd(a, p) == 1, p is prime > 2
- modinv_
recurse - moebius
- g(d) = Sigma mu(d) * f(n/d)
- prime_
factors - prime_
factors_ flatten - primitive_
root - solve_
linear_ congruence - return: (y,z)
- solve_
linear_ diophantine - Solve ax + by = c
- solve_
simultaneous_ linear_ congruence - return: (y,z)
- with_
prime_ list