Kyopro Library
 
読み取り中…
検索中…
一致する文字列を見つけられません
ModInt< MOD > 構造体テンプレート

ModInt [詳解]

#include "modint.hpp"

公開メンバ関数

 ModInt (ll x=0)
 
ModInt operator- () const
 
ModInt operator+ () const
 
ModIntoperator+= (const ModInt &other)
 
ModIntoperator-= (const ModInt &other)
 
ModIntoperator*= (const ModInt other)
 
ModIntoperator/= (ModInt other)
 
ModInt operator+ (const ModInt &other) const
 
ModInt operator- (const ModInt &other) const
 
ModInt operator* (const ModInt &other) const
 
ModInt operator/ (const ModInt &other) const
 
bool operator== (const ModInt &other) const
 
bool operator!= (const ModInt &other) const
 
ModInt pow (ll x) const
 
ModInt inv () const
 
ll val ()
 

静的公開メンバ関数

static constexpr ll get_mod ()
 

フレンド

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

詳解

template<ll MOD>
struct ModInt< MOD >

ModInt

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

構築子と解体子

◆ ModInt()

template<ll MOD>
ModInt< MOD >::ModInt ( ll x = 0)
inline

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

関数詳解

◆ operator-() [1/2]

template<ll MOD>
ModInt ModInt< MOD >::operator- ( ) const
inline

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

◆ operator+() [1/2]

template<ll MOD>
ModInt ModInt< MOD >::operator+ ( ) const
inline

modint.hpp10 行目に定義があります。

◆ operator+=()

template<ll MOD>
ModInt & ModInt< MOD >::operator+= ( const ModInt< MOD > & other)
inline

modint.hpp11 行目に定義があります。

◆ operator-=()

template<ll MOD>
ModInt & ModInt< MOD >::operator-= ( const ModInt< MOD > & other)
inline

modint.hpp16 行目に定義があります。

◆ operator*=()

template<ll MOD>
ModInt & ModInt< MOD >::operator*= ( const ModInt< MOD > other)
inline

modint.hpp21 行目に定義があります。

◆ operator/=()

template<ll MOD>
ModInt & ModInt< MOD >::operator/= ( ModInt< MOD > other)
inline

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

◆ operator+() [2/2]

template<ll MOD>
ModInt ModInt< MOD >::operator+ ( const ModInt< MOD > & other) const
inline

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

◆ operator-() [2/2]

template<ll MOD>
ModInt ModInt< MOD >::operator- ( const ModInt< MOD > & other) const
inline

modint.hpp30 行目に定義があります。

◆ operator*()

template<ll MOD>
ModInt ModInt< MOD >::operator* ( const ModInt< MOD > & other) const
inline

modint.hpp31 行目に定義があります。

◆ operator/()

template<ll MOD>
ModInt ModInt< MOD >::operator/ ( const ModInt< MOD > & other) const
inline

modint.hpp32 行目に定義があります。

◆ operator==()

template<ll MOD>
bool ModInt< MOD >::operator== ( const ModInt< MOD > & other) const
inline

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

◆ operator!=()

template<ll MOD>
bool ModInt< MOD >::operator!= ( const ModInt< MOD > & other) const
inline

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

◆ pow()

template<ll MOD>
ModInt ModInt< MOD >::pow ( ll x) const
inline

modint.hpp43 行目に定義があります。

◆ inv()

template<ll MOD>
ModInt ModInt< MOD >::inv ( ) const
inline

modint.hpp52 行目に定義があります。

◆ val()

template<ll MOD>
ll ModInt< MOD >::val ( )
inline

modint.hpp53 行目に定義があります。

◆ get_mod()

template<ll MOD>
static constexpr ll ModInt< MOD >::get_mod ( )
inlinestaticconstexpr

modint.hpp54 行目に定義があります。

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

◆ operator<<

template<ll MOD>
ostream & operator<< ( ostream & os,
const ModInt< MOD > & x )
friend

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

◆ operator>>

template<ll MOD>
istream & operator>> ( istream & is,
ModInt< MOD > & x )
friend

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


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