Documentation
¶
Index ¶
- Constants
- func SetMod(newmod Mint)
- type CombFactorial
- type Mint
- func (m Mint) Add(x Mint) Mint
- func (m *Mint) AddAs(x Mint) *Mint
- func (m Mint) Div(x Mint) Mint
- func (m *Mint) DivAs(x Mint) *Mint
- func (m Mint) Inv() Mint
- func (m Mint) Mod() Mint
- func (m Mint) Mul(x Mint) Mint
- func (m *Mint) MulAs(x Mint) *Mint
- func (m Mint) Pow(n Mint) Mint
- func (m Mint) Sub(x Mint) Mint
- func (m *Mint) SubAs(x Mint) *Mint
Constants ¶
View Source
const ( Mod1000000007 = 1000000007 Mod998244353 = 998244353 )
Mod constants.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CombFactorial ¶
type CombFactorial struct {
// contains filtered or unexported fields
}
func NewCombFactorial ¶
func NewCombFactorial(maxNum Mint) *CombFactorial
func (*CombFactorial) C ¶
func (c *CombFactorial) C(n, r Mint) Mint
func (*CombFactorial) H ¶
func (c *CombFactorial) H(n, r Mint) Mint
func (*CombFactorial) P ¶
func (c *CombFactorial) P(n, r Mint) Mint
Click to show internal directories.
Click to hide internal directories.