Kyopro Library
 
読み取り中…
検索中…
一致する文字列を見つけられません
ModIntDynamic 構造体

実行時に mod を変更できる ModInt [詳解]

#include "modint_dynamic.hpp"

公開メンバ関数

 ModIntDynamic (ll x=0)
 
ModIntDynamic operator- () const
 
ModIntDynamic operator+ () const
 
ModIntDynamicoperator+= (const ModIntDynamic &other)
 
ModIntDynamicoperator-= (const ModIntDynamic &other)
 
ModIntDynamicoperator*= (const ModIntDynamic other)
 
ModIntDynamicoperator/= (ModIntDynamic other)
 
ModIntDynamic operator+ (const ModIntDynamic &other) const
 
ModIntDynamic operator- (const ModIntDynamic &other) const
 
ModIntDynamic operator* (const ModIntDynamic &other) const
 
ModIntDynamic operator/ (const ModIntDynamic &other) const
 
ModIntDynamic pow (ll x) const
 
ModIntDynamic inv () const
 
bool operator== (const ModIntDynamic &other) const
 
bool operator!= (const ModIntDynamic &other) const
 

静的公開メンバ関数

static void set_mod (ll x)
 
static ll get_mod ()
 

公開変数類

ll value
 

静的公開変数類

static ll mod =998244353
 

フレンド

ostream & operator<< (ostream &os, const ModIntDynamic &x)
 
istream & operator>> (istream &is, ModIntDynamic &x)
 

詳解

実行時に mod を変更できる ModInt

modint_dynamic.hpp4 行目に定義があります。

構築子と解体子

◆ ModIntDynamic()

ModIntDynamic::ModIntDynamic ( ll x = 0)
inline

modint_dynamic.hpp9 行目に定義があります。

参照先 mod, value.

関数詳解

◆ set_mod()

static void ModIntDynamic::set_mod ( ll x)
inlinestatic

modint_dynamic.hpp7 行目に定義があります。

参照先 mod.

◆ get_mod()

static ll ModIntDynamic::get_mod ( )
inlinestatic

modint_dynamic.hpp8 行目に定義があります。

参照先 mod.

◆ operator-() [1/2]

ModIntDynamic ModIntDynamic::operator- ( ) const
inline

modint_dynamic.hpp13 行目に定義があります。

参照先 ModIntDynamic(), value.

◆ operator+() [1/2]

ModIntDynamic ModIntDynamic::operator+ ( ) const
inline

modint_dynamic.hpp14 行目に定義があります。

◆ operator+=()

ModIntDynamic & ModIntDynamic::operator+= ( const ModIntDynamic & other)
inline

modint_dynamic.hpp15 行目に定義があります。

参照先 mod, value.

◆ operator-=()

ModIntDynamic & ModIntDynamic::operator-= ( const ModIntDynamic & other)
inline

modint_dynamic.hpp20 行目に定義があります。

参照先 mod, value.

◆ operator*=()

ModIntDynamic & ModIntDynamic::operator*= ( const ModIntDynamic other)
inline

modint_dynamic.hpp25 行目に定義があります。

参照先 mod, value.

◆ operator/=()

ModIntDynamic & ModIntDynamic::operator/= ( ModIntDynamic other)
inline

modint_dynamic.hpp29 行目に定義があります。

参照先 inv(), operator*=().

◆ operator+() [2/2]

ModIntDynamic ModIntDynamic::operator+ ( const ModIntDynamic & other) const
inline

modint_dynamic.hpp33 行目に定義があります。

参照先 operator+=().

◆ operator-() [2/2]

ModIntDynamic ModIntDynamic::operator- ( const ModIntDynamic & other) const
inline

modint_dynamic.hpp34 行目に定義があります。

参照先 operator-=().

◆ operator*()

ModIntDynamic ModIntDynamic::operator* ( const ModIntDynamic & other) const
inline

modint_dynamic.hpp35 行目に定義があります。

参照先 operator*=().

◆ operator/()

ModIntDynamic ModIntDynamic::operator/ ( const ModIntDynamic & other) const
inline

modint_dynamic.hpp36 行目に定義があります。

参照先 operator/=().

◆ pow()

ModIntDynamic ModIntDynamic::pow ( ll x) const
inline

modint_dynamic.hpp37 行目に定義があります。

参照先 ModIntDynamic(), operator*=(), value.

◆ inv()

ModIntDynamic ModIntDynamic::inv ( ) const
inline

modint_dynamic.hpp46 行目に定義があります。

参照先 mod, pow().

◆ operator==()

bool ModIntDynamic::operator== ( const ModIntDynamic & other) const
inline

modint_dynamic.hpp47 行目に定義があります。

参照先 value.

◆ operator!=()

bool ModIntDynamic::operator!= ( const ModIntDynamic & other) const
inline

modint_dynamic.hpp48 行目に定義があります。

参照先 value.

フレンドと関連関数の詳解

◆ operator<<

ostream & operator<< ( ostream & os,
const ModIntDynamic & x )
friend

modint_dynamic.hpp49 行目に定義があります。

参照先 value.

◆ operator>>

istream & operator>> ( istream & is,
ModIntDynamic & x )
friend

modint_dynamic.hpp50 行目に定義があります。

参照先 ModIntDynamic().

メンバ詳解

◆ value

ll ModIntDynamic::value

modint_dynamic.hpp5 行目に定義があります。

◆ mod

ll ModIntDynamic::mod =998244353
static

modint_dynamic.hpp6 行目に定義があります。


この構造体詳解は次のファイルから抽出されました: