亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? zz_px.h

?? 一個比較通用的大數運算庫
?? H
?? 第 1 頁 / 共 3 頁
字號:


#ifndef NTL_ZZ_pX__H
#define NTL_ZZ_pX__H

#include <NTL/vector.h>
#include <NTL/ZZ_p.h>
#include <NTL/vec_ZZ.h>
#include <NTL/vec_ZZ_p.h>
#include <NTL/FFT.h>

NTL_OPEN_NNS




// some cross-over points
// macros are used so as to be consistent with zz_pX 

#define NTL_ZZ_pX_FFT_CROSSOVER (20)  
#define NTL_ZZ_pX_NEWTON_CROSSOVER (45)
#define NTL_ZZ_pX_DIV_CROSSOVER (90)
#define NTL_ZZ_pX_HalfGCD_CROSSOVER (25)
#define NTL_ZZ_pX_GCD_CROSSOVER (180)
#define NTL_ZZ_pX_BERMASS_CROSSOVER (90)
#define NTL_ZZ_pX_TRACE_CROSSOVER (90)



/************************************************************

                         ZZ_pX

The class ZZ_pX implements polynomial arithmetic modulo p.
Polynomials are represented as vec_ZZ_p's.
If f is a ZZ_pX, then f.rep is a vec_ZZ_p.
The zero polynomial is represented as a zero length vector.
Otherwise. f.rep[0] is the constant-term, and f.rep[f.rep.length()-1]
is the leading coefficient, which is always non-zero.
The member f.rep is public, so the vector representation is fully
accessible.
Use the member function normalize() to strip leading zeros.

**************************************************************/


class ZZ_pX {

public:

typedef vec_ZZ_p VectorBaseType; 


vec_ZZ_p rep;


/***************************************************************

          Constructors, Destructors, and Assignment

****************************************************************/


ZZ_pX()
//  initial value 0

   { }


ZZ_pX(INIT_SIZE_TYPE, long n) { rep.SetMaxLength(n); }

ZZ_pX(const ZZ_pX& a) : rep(a.rep) { }
// initial value is a


ZZ_pX& operator=(const ZZ_pX& a) 
   { rep = a.rep; return *this; }

~ZZ_pX() { }

void normalize();
// strip leading zeros

void SetMaxLength(long n) 
// pre-allocate space for n coefficients.
// Value is unchanged

   { rep.SetMaxLength(n); }


void kill() 
// free space held by this polynomial.  Value becomes 0.

   { rep.kill(); }

static const ZZ_pX& zero();


ZZ_pX(ZZ_pX& x, INIT_TRANS_TYPE) : rep(x.rep, INIT_TRANS) { }

inline ZZ_pX(long i, const ZZ_p& c);
inline ZZ_pX(long i, long c);

ZZ_pX& operator=(long a);
ZZ_pX& operator=(const ZZ_p& a);


};




/********************************************************************

                           input and output

I/O format:

   [a_0 a_1 ... a_n],

represents the polynomial a_0 + a_1*X + ... + a_n*X^n.

On output, all coefficients will be integers between 0 and p-1,
amd a_n not zero (the zero polynomial is [ ]).
On input, the coefficients are arbitrary integers which are
then reduced modulo p, and leading zeros stripped.

*********************************************************************/


NTL_SNS istream& operator>>(NTL_SNS istream& s, ZZ_pX& x);
NTL_SNS ostream& operator<<(NTL_SNS ostream& s, const ZZ_pX& a);




/**********************************************************

                   Some utility routines

***********************************************************/


inline long deg(const ZZ_pX& a) { return a.rep.length() - 1; }
// degree of a polynomial.
// note that the zero polynomial has degree -1.

const ZZ_p& coeff(const ZZ_pX& a, long i);
// zero if i not in range

void GetCoeff(ZZ_p& x, const ZZ_pX& a, long i);
// x = a[i], or zero if i not in range

const ZZ_p& LeadCoeff(const ZZ_pX& a);
// zero if a == 0

const ZZ_p& ConstTerm(const ZZ_pX& a);
// zero if a == 0

void SetCoeff(ZZ_pX& x, long i, const ZZ_p& a);
// x[i] = a, error is raised if i < 0

void SetCoeff(ZZ_pX& x, long i, long a);

void SetCoeff(ZZ_pX& x, long i);
// x[i] = 1, error is raised if i < 0

inline ZZ_pX::ZZ_pX(long i, const ZZ_p& a)
   { SetCoeff(*this, i, a); } 

inline ZZ_pX::ZZ_pX(long i, long a)
   { SetCoeff(*this, i, a); } 

void SetX(ZZ_pX& x);
// x is set to the monomial X

long IsX(const ZZ_pX& a);
// test if a = X

inline void clear(ZZ_pX& x) 
// x = 0

   { x.rep.SetLength(0); }

inline void set(ZZ_pX& x)
// x = 1

   { x.rep.SetLength(1); set(x.rep[0]); }

inline void swap(ZZ_pX& x, ZZ_pX& y)
// swap x & y (only pointers are swapped)

   { swap(x.rep, y.rep); }

void random(ZZ_pX& x, long n);
inline ZZ_pX random_ZZ_pX(long n)
   { ZZ_pX x; random(x, n); NTL_OPT_RETURN(ZZ_pX, x); }
// generate a random polynomial of degree < n 

void trunc(ZZ_pX& x, const ZZ_pX& a, long m);
// x = a % X^m

inline ZZ_pX trunc(const ZZ_pX& a, long m)
   { ZZ_pX x; trunc(x, a, m); NTL_OPT_RETURN(ZZ_pX, x); }

void RightShift(ZZ_pX& x, const ZZ_pX& a, long n);
// x = a/X^n

inline ZZ_pX RightShift(const ZZ_pX& a, long n)
   { ZZ_pX x; RightShift(x, a, n); NTL_OPT_RETURN(ZZ_pX, x); }

void LeftShift(ZZ_pX& x, const ZZ_pX& a, long n);
// x = a*X^n

inline ZZ_pX LeftShift(const ZZ_pX& a, long n)
   { ZZ_pX x; LeftShift(x, a, n); NTL_OPT_RETURN(ZZ_pX, x); }

#ifndef NTL_TRANSITION

inline ZZ_pX operator>>(const ZZ_pX& a, long n)
   { ZZ_pX x; RightShift(x, a, n); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator<<(const ZZ_pX& a, long n)
   { ZZ_pX x; LeftShift(x, a, n); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX& operator<<=(ZZ_pX& x, long n)
   { LeftShift(x, x, n); return x; }

inline ZZ_pX& operator>>=(ZZ_pX& x, long n)
   { RightShift(x, x, n); return x; }

#endif



void diff(ZZ_pX& x, const ZZ_pX& a);
// x = derivative of a

inline ZZ_pX diff(const ZZ_pX& a)
   { ZZ_pX x; diff(x, a); NTL_OPT_RETURN(ZZ_pX, x); }


void MakeMonic(ZZ_pX& x);

void reverse(ZZ_pX& c, const ZZ_pX& a, long hi);

inline ZZ_pX reverse(const ZZ_pX& a, long hi)
   { ZZ_pX x; reverse(x, a, hi); NTL_OPT_RETURN(ZZ_pX, x); }

inline void reverse(ZZ_pX& c, const ZZ_pX& a)
{  reverse(c, a, deg(a)); }

inline ZZ_pX reverse(const ZZ_pX& a)
   { ZZ_pX x; reverse(x, a); NTL_OPT_RETURN(ZZ_pX, x); }

inline void VectorCopy(vec_ZZ_p& x, const ZZ_pX& a, long n)
   { VectorCopy(x, a.rep, n); }

inline vec_ZZ_p VectorCopy(const ZZ_pX& a, long n)
   { return VectorCopy(a.rep, n); }




/*******************************************************************

                        conversion routines

********************************************************************/



void conv(ZZ_pX& x, long a);
void conv(ZZ_pX& x, const ZZ& a);
void conv(ZZ_pX& x, const ZZ_p& a);
void conv(ZZ_pX& x, const vec_ZZ_p& a);

inline ZZ_pX to_ZZ_pX(long a)
   { ZZ_pX x; conv(x, a); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX to_ZZ_pX(const ZZ& a)
   { ZZ_pX x; conv(x, a); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX to_ZZ_pX(const ZZ_p& a)
   { ZZ_pX x; conv(x, a); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX to_ZZ_pX(const vec_ZZ_p& a)
   { ZZ_pX x; conv(x, a); NTL_OPT_RETURN(ZZ_pX, x); }



/*************************************************************

                        Comparison

**************************************************************/

long IsZero(const ZZ_pX& a); 

long IsOne(const ZZ_pX& a);

inline long operator==(const ZZ_pX& a, const ZZ_pX& b)
{
   return a.rep == b.rep;
}

inline long operator!=(const ZZ_pX& a, const ZZ_pX& b)
{
   return !(a == b);
}

long operator==(const ZZ_pX& a, long b);
long operator==(const ZZ_pX& a, const ZZ_p& b);

inline long operator==(long a, const ZZ_pX& b) { return b == a; }
inline long operator==(const ZZ_p& a, const ZZ_pX& b) { return b == a; }

inline long operator!=(const ZZ_pX& a, long b) { return !(a == b); }
inline long operator!=(const ZZ_pX& a, const ZZ_p& b) { return !(a == b); }

inline long operator!=(long a, const ZZ_pX& b) { return !(a == b); }
inline long operator!=(const ZZ_p& a, const ZZ_pX& b) { return !(a == b); }


/***************************************************************

                         Addition

****************************************************************/

void add(ZZ_pX& x, const ZZ_pX& a, const ZZ_pX& b);
// x = a + b

void sub(ZZ_pX& x, const ZZ_pX& a, const ZZ_pX& b);
// x = a - b

void negate(ZZ_pX& x, const ZZ_pX& a);
// x = -a

// scalar versions

void add(ZZ_pX& x, const ZZ_pX& a, const ZZ_p& b); // x = a + b
void add(ZZ_pX& x, const ZZ_pX& a, long b);

inline void add(ZZ_pX& x, const ZZ_p& a, const ZZ_pX& b) { add(x, b, a); }
inline void add(ZZ_pX& x, long a, const ZZ_pX& b) { add(x, b, a); }


void sub(ZZ_pX & x, const ZZ_pX& a, const ZZ_p& b); // x = a - b

void sub(ZZ_pX& x, const ZZ_pX& a, long b);
void sub(ZZ_pX& x, const ZZ_pX& a, const ZZ_p& b);

void sub(ZZ_pX& x, long a, const ZZ_pX& b);
void sub(ZZ_pX& x, const ZZ_p& a, const ZZ_pX& b);

inline ZZ_pX operator+(const ZZ_pX& a, const ZZ_pX& b)
   { ZZ_pX x; add(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator+(const ZZ_pX& a, const ZZ_p& b)
   { ZZ_pX x; add(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator+(const ZZ_pX& a, long b)
   { ZZ_pX x; add(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator+(const ZZ_p& a, const ZZ_pX& b)
   { ZZ_pX x; add(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator+(long a, const ZZ_pX& b)
   { ZZ_pX x; add(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }


inline ZZ_pX operator-(const ZZ_pX& a, const ZZ_pX& b)
   { ZZ_pX x; sub(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator-(const ZZ_pX& a, const ZZ_p& b)
   { ZZ_pX x; sub(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator-(const ZZ_pX& a, long b)
   { ZZ_pX x; sub(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator-(const ZZ_p& a, const ZZ_pX& b)
   { ZZ_pX x; sub(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX operator-(long a, const ZZ_pX& b)
   { ZZ_pX x; sub(x, a, b); NTL_OPT_RETURN(ZZ_pX, x); }


inline ZZ_pX& operator+=(ZZ_pX& x, const ZZ_pX& b)
   { add(x, x, b); return x; }

inline ZZ_pX& operator+=(ZZ_pX& x, const ZZ_p& b)
   { add(x, x, b); return x; }

inline ZZ_pX& operator+=(ZZ_pX& x, long b)
   { add(x, x, b); return x; }

inline ZZ_pX& operator-=(ZZ_pX& x, const ZZ_pX& b)
   { sub(x, x, b); return x; }

inline ZZ_pX& operator-=(ZZ_pX& x, const ZZ_p& b)
   { sub(x, x, b); return x; }

inline ZZ_pX& operator-=(ZZ_pX& x, long b)
   { sub(x, x, b); return x; }


inline ZZ_pX operator-(const ZZ_pX& a) 
   { ZZ_pX x; negate(x, a); NTL_OPT_RETURN(ZZ_pX, x); }

inline ZZ_pX& operator++(ZZ_pX& x) { add(x, x, 1); return x; }
inline void operator++(ZZ_pX& x, int) { add(x, x, 1); }
inline ZZ_pX& operator--(ZZ_pX& x) { sub(x, x, 1); return x; }
inline void operator--(ZZ_pX& x, int) { sub(x, x, 1); }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜电影网| 国产精品女人毛片| 亚洲欧洲日产国码二区| 日韩精品乱码av一区二区| 福利电影一区二区三区| 欧美精品国产精品| 中文字幕不卡的av| 久久精品免费观看| 欧美人与z0zoxxxx视频| 亚洲色图视频网站| 国产成人免费9x9x人网站视频| 7777精品伊人久久久大香线蕉完整版 | 日韩免费观看高清完整版在线观看| 国产精品久久久久久妇女6080 | 亚洲日本一区二区| 亚洲妇女屁股眼交7| 91在线视频观看| 国产精品区一区二区三| 国产精品一区二区在线观看网站| 欧美日韩一级视频| 一区二区三区欧美日| 成人av网址在线观看| 久久久久久久久97黄色工厂| 久久精品国产秦先生| 欧美片网站yy| 男女男精品视频网| 这里只有精品免费| 日本不卡免费在线视频| 欧美一区二区三区日韩视频| 日韩电影在线一区二区| 欧美一级在线观看| 免费在线观看一区二区三区| 日韩欧美国产综合在线一区二区三区| 五月天国产精品| 91精品国产综合久久久久| 天堂一区二区在线免费观看| 91精品欧美综合在线观看最新| 亚洲777理论| 日韩你懂的在线观看| 久久精品久久综合| 国产欧美一区二区在线观看| 成人免费视频app| 国产精品女同互慰在线看 | 国产精品中文字幕日韩精品| 久久女同性恋中文字幕| 高清不卡一二三区| 亚洲啪啪综合av一区二区三区| 色爱区综合激月婷婷| 亚洲国产精品综合小说图片区| 欧美性极品少妇| 人人超碰91尤物精品国产| 日韩美女一区二区三区四区| 国产一区二区按摩在线观看| 中文字幕制服丝袜成人av| 在线观看免费视频综合| 全国精品久久少妇| 久久一夜天堂av一区二区三区| 成人综合日日夜夜| 夜夜精品浪潮av一区二区三区| 日韩视频一区二区| 99久久99久久免费精品蜜臀| 亚洲国产美女搞黄色| 精品国产sm最大网站免费看| www.亚洲免费av| 视频一区视频二区中文字幕| 国产女主播一区| 精品婷婷伊人一区三区三| 国产精品1区二区.| 亚洲va国产va欧美va观看| 久久久亚洲精华液精华液精华液| 色屁屁一区二区| 国产一区二区三区精品欧美日韩一区二区三区 | 99re在线精品| 麻豆精品一区二区| 一区二区欧美精品| 欧美激情一区二区三区蜜桃视频| 欧美三级一区二区| 成人动漫精品一区二区| 久久国产三级精品| 亚洲高清在线精品| 欧美精品一区二区久久久| 色美美综合视频| 国产盗摄精品一区二区三区在线| 亚洲成av人片www| 亚洲欧美一区二区三区国产精品| 欧美大片日本大片免费观看| 欧美影院一区二区| 国产精品一区在线观看你懂的| 丝袜亚洲另类欧美综合| 亚洲男人的天堂一区二区| 国产日本欧美一区二区| 2021国产精品久久精品| 欧美日韩在线综合| 一本色道久久综合亚洲精品按摩| 福利一区福利二区| 国产一区二区按摩在线观看| 美女脱光内衣内裤视频久久网站| 一片黄亚洲嫩模| 亚洲精品日产精品乱码不卡| 国产三级一区二区三区| 亚洲精品在线一区二区| 欧美电影免费观看高清完整版在线 | 国产一区美女在线| 美美哒免费高清在线观看视频一区二区 | 色香蕉成人二区免费| 粗大黑人巨茎大战欧美成人| 国产福利一区二区三区视频在线 | 青青草原综合久久大伊人精品| 亚洲国产精品尤物yw在线观看| 亚洲日本在线观看| 亚洲色图制服诱惑| 亚洲欧洲精品天堂一级| 国产精品成人网| **欧美大码日韩| 最新日韩在线视频| 亚洲色图制服诱惑 | 国产精品456| 从欧美一区二区三区| 成人动漫一区二区三区| 99在线热播精品免费| 99免费精品视频| 色综合久久88色综合天天免费| 99国产一区二区三精品乱码| 日本精品视频一区二区三区| 在线视频欧美精品| 欧美色图激情小说| 日韩欧美一卡二卡| 久久丝袜美腿综合| 国产精品色在线| 亚洲裸体xxx| 视频一区视频二区中文字幕| 久久电影国产免费久久电影 | 精品一区二区三区不卡| 国产福利一区在线| 色婷婷av一区二区三区大白胸| 欧美日韩一级视频| 久久一区二区视频| 国产精品久久久久久久久久久免费看 | 亚洲综合图片区| 日本欧美一区二区| 高清不卡一二三区| 欧美日韩在线不卡| 久久久天堂av| 一区二区三区免费| 久久激五月天综合精品| 91麻豆成人久久精品二区三区| 欧美日韩一区二区三区四区| 2021久久国产精品不只是精品| 最新日韩av在线| 麻豆91精品视频| 色94色欧美sute亚洲线路一久| 91麻豆精品国产自产在线观看一区| 久久综合色播五月| 亚洲午夜三级在线| 国产成人午夜片在线观看高清观看| 在线观看亚洲a| 久久久精品黄色| 亚洲成人免费影院| eeuss影院一区二区三区| 欧美一区中文字幕| 亚洲欧美综合在线精品| 精品一区二区国语对白| 欧美午夜不卡视频| 国产精品久久久久久久久搜平片 | 国产精品视频yy9299一区| 水蜜桃久久夜色精品一区的特点| 成人小视频在线| 欧美成人精品1314www| 一区二区三区在线视频免费观看| 国内一区二区视频| 欧美丰满少妇xxxxx高潮对白| 亚洲欧洲韩国日本视频| 国产成a人无v码亚洲福利| 欧美一区二区福利在线| 一区二区三区成人| 91亚洲资源网| 国产精品伦理一区二区| 国产一区不卡视频| 日韩三级在线观看| 亚洲最新视频在线播放| 久久精品一二三| 欧美视频一区在线| 国产日韩v精品一区二区| 日本不卡不码高清免费观看| 欧亚洲嫩模精品一区三区| 欧美国产日韩一二三区| 国产成人在线视频网站| 欧美成人a视频| 日本在线不卡视频| 欧美乱妇20p| 天堂影院一区二区| 欧美精品免费视频| 亚洲国产精品一区二区尤物区| 色哟哟日韩精品| 亚洲欧美电影一区二区| 91丨porny丨国产| 亚洲欧洲国产日韩| 91污在线观看| 亚洲欧美一区二区三区孕妇| 在线视频综合导航|