[][src]Module algonium::math

mathematic related functions and structs

Structs

Comb

Useful struct to compute combinations

Mint

Wrapper class to compute modulo operation. See examples Mint107, Mint109, Mint998

Mod107

struct to implement Module trait. it returns MOD_107.

Mod109

struct to implement Module trait. it returns MOD_109.

Mod998

struct to implement Module trait. it returns MOD_998.

Constants

MOD_107

One of famous numbers in programming contest. 10^9 + 7

MOD_109

One of famous numbers in programming contest. 10^9 + 9

MOD_998

One of famous numbers in programming contest. 998_244_353

Traits

Module

Trait for Mint. module() should return prime number.

Type Definitions

Mint107

Wrapper class to compute mod 1_000_000_007 automatically.

Mint109

Wrapper class to compute mod 1_000_000_009 automatically.

Mint998

Wrapper class to compute mod 998_244_353 automatically.