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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? zz_pex.txt

?? NTL is a high-performance, portable C++ library providing data structures and algorithms for manipul
?? TXT
?? 第 1 頁 / 共 2 頁
字號:

/**************************************************************************\

MODULE: ZZ_pEX

SUMMARY:

The class ZZ_pEX represents polynomials over ZZ_pE,
and so can be used, for example, for arithmentic in GF(p^n)[X].
However, except where mathematically necessary (e.g., GCD computations),
ZZ_pE need not be a field.

\**************************************************************************/

#include <NTL/ZZ_pE.h>
#include <NTL/vec_ZZ_pE.h>

class ZZ_pEX {
public:

   ZZ_pEX(); // initial value 0

   ZZ_pEX(const ZZ_pEX& a); // copy

   ZZ_pEX& operator=(const ZZ_pEX& a); // assignment
   ZZ_pEX& operator=(const ZZ_pE& a);
   ZZ_pEX& operator=(const ZZ_p& a);
   ZZ_pEX& operator=(long a);

   ~ZZ_pEX(); // destructor

   ZZ_pEX(long i, const ZZ_pE& c); // initilaize to X^i*c
   ZZ_pEX(long i, const ZZ_p& c); 
   ZZ_pEX(long i, long c); 

   
};






/**************************************************************************\

                                  Comparison

\**************************************************************************/


long operator==(const ZZ_pEX& a, const ZZ_pEX& b);
long operator!=(const ZZ_pEX& a, const ZZ_pEX& b);

long IsZero(const ZZ_pEX& a); // test for 0
long IsOne(const ZZ_pEX& a); // test for 1

// PROMOTIONS: ==, != promote {long,ZZ_p,ZZ_pE} to ZZ_pEX on (a, b).

/**************************************************************************\

                                   Addition

\**************************************************************************/

// operator notation:

ZZ_pEX operator+(const ZZ_pEX& a, const ZZ_pEX& b);
ZZ_pEX operator-(const ZZ_pEX& a, const ZZ_pEX& b);
ZZ_pEX operator-(const ZZ_pEX& a);

ZZ_pEX& operator+=(ZZ_pEX& x, const ZZ_pEX& a);
ZZ_pEX& operator+=(ZZ_pEX& x, const ZZ_pE& a);
ZZ_pEX& operator+=(ZZ_pEX& x, const ZZ_p& a);
ZZ_pEX& operator+=(ZZ_pEX& x, long a);


ZZ_pEX& operator++(ZZ_pEX& x);  // prefix
void operator++(ZZ_pEX& x, int);  // postfix

ZZ_pEX& operator-=(ZZ_pEX& x, const ZZ_pEX& a);
ZZ_pEX& operator-=(ZZ_pEX& x, const ZZ_pE& a);
ZZ_pEX& operator-=(ZZ_pEX& x, const ZZ_p& a);
ZZ_pEX& operator-=(ZZ_pEX& x, long a);

ZZ_pEX& operator--(ZZ_pEX& x);  // prefix
void operator--(ZZ_pEX& x, int);  // postfix

// procedural versions:

void add(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& b); // x = a + b
void sub(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& b); // x = a - b 
void negate(ZZ_pEX& x, const ZZ_pEX& a); // x = - a 

// PROMOTIONS: +, -, add, sub promote {long,ZZ_p,ZZ_pE} to ZZ_pEX on (a, b).



/**************************************************************************\

                               Multiplication

\**************************************************************************/

// operator notation:

ZZ_pEX operator*(const ZZ_pEX& a, const ZZ_pEX& b);

ZZ_pEX& operator*=(ZZ_pEX& x, const ZZ_pEX& a);
ZZ_pEX& operator*=(ZZ_pEX& x, const ZZ_pE& a);
ZZ_pEX& operator*=(ZZ_pEX& x, const ZZ_p& a);
ZZ_pEX& operator*=(ZZ_pEX& x, long a);


// procedural versions:


void mul(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& b); // x = a * b

void sqr(ZZ_pEX& x, const ZZ_pEX& a); // x = a^2
ZZ_pEX sqr(const ZZ_pEX& a); 

// PROMOTIONS: *, mul promote {long,ZZ_p,ZZ_pE} to ZZ_pEX on (a, b).

void power(ZZ_pEX& x, const ZZ_pEX& a, long e);  // x = a^e (e >= 0)
ZZ_pEX power(const ZZ_pEX& a, long e);


/**************************************************************************\

                               Shift Operations

LeftShift by n means multiplication by X^n
RightShift by n means division by X^n

A negative shift amount reverses the direction of the shift.

\**************************************************************************/

// operator notation:

ZZ_pEX operator<<(const ZZ_pEX& a, long n);
ZZ_pEX operator>>(const ZZ_pEX& a, long n);

ZZ_pEX& operator<<=(ZZ_pEX& x, long n);
ZZ_pEX& operator>>=(ZZ_pEX& x, long n);

// procedural versions:

void LeftShift(ZZ_pEX& x, const ZZ_pEX& a, long n); 
ZZ_pEX LeftShift(const ZZ_pEX& a, long n);

void RightShift(ZZ_pEX& x, const ZZ_pEX& a, long n); 
ZZ_pEX RightShift(const ZZ_pEX& a, long n); 



/**************************************************************************\

                                  Division

\**************************************************************************/

// operator notation:

ZZ_pEX operator/(const ZZ_pEX& a, const ZZ_pEX& b);
ZZ_pEX operator/(const ZZ_pEX& a, const ZZ_pE& b);
ZZ_pEX operator/(const ZZ_pEX& a, const ZZ_p& b);
ZZ_pEX operator/(const ZZ_pEX& a, long b);

ZZ_pEX operator%(const ZZ_pEX& a, const ZZ_pEX& b);

ZZ_pEX& operator/=(ZZ_pEX& x, const ZZ_pEX& a);
ZZ_pEX& operator/=(ZZ_pEX& x, const ZZ_pE& a);
ZZ_pEX& operator/=(ZZ_pEX& x, const ZZ_p& a);
ZZ_pEX& operator/=(ZZ_pEX& x, long a);

ZZ_pEX& operator%=(ZZ_pEX& x, const ZZ_pEX& a);

// procedural versions:


void DivRem(ZZ_pEX& q, ZZ_pEX& r, const ZZ_pEX& a, const ZZ_pEX& b);
// q = a/b, r = a%b

void div(ZZ_pEX& q, const ZZ_pEX& a, const ZZ_pEX& b);
void div(ZZ_pEX& q, const ZZ_pEX& a, const ZZ_pE& b);
void div(ZZ_pEX& q, const ZZ_pEX& a, const ZZ_p& b);
void div(ZZ_pEX& q, const ZZ_pEX& a, long b);
// q = a/b

void rem(ZZ_pEX& r, const ZZ_pEX& a, const ZZ_pEX& b);
// r = a%b

long divide(ZZ_pEX& q, const ZZ_pEX& a, const ZZ_pEX& b);
// if b | a, sets q = a/b and returns 1; otherwise returns 0

long divide(const ZZ_pEX& a, const ZZ_pEX& b);
// if b | a, sets q = a/b and returns 1; otherwise returns 0


/**************************************************************************\

                                   GCD's

These routines are intended for use when ZZ_pE is a field.

\**************************************************************************/


void GCD(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& b);
ZZ_pEX GCD(const ZZ_pEX& a, const ZZ_pEX& b); 
// x = GCD(a, b),  x is always monic (or zero if a==b==0).


void XGCD(ZZ_pEX& d, ZZ_pEX& s, ZZ_pEX& t, const ZZ_pEX& a, const ZZ_pEX& b);
// d = gcd(a,b), a s + b t = d 


/**************************************************************************\

                                  Input/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 polynomials of degree < ZZ_pE::degree() and
a_n not zero (the zero polynomial is [ ]).  On input, the coefficients
are arbitrary polynomials which are reduced modulo ZZ_pE::modulus(), 
and leading zeros stripped.

\**************************************************************************/

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


/**************************************************************************\

                              Some utility routines

\**************************************************************************/

long deg(const ZZ_pEX& a);  // return deg(a); deg(0) == -1.

const ZZ_pE& coeff(const ZZ_pEX& a, long i);
// returns a read-only reference to the coefficient of X^i, or zero if
// i not in range

const ZZ_pE& LeadCoeff(const ZZ_pEX& a);
// read-only reference to leading term of a, or zero if a == 0

const ZZ_pE& ConstTerm(const ZZ_pEX& a);
// read-only reference to constant term of a, or zero if a == 0

void SetCoeff(ZZ_pEX& x, long i, const ZZ_pE& a);
void SetCoeff(ZZ_pEX& x, long i, const ZZ_p& a);
void SetCoeff(ZZ_pEX& x, long i, long a);
// makes coefficient of X^i equal to a;  error is raised if i < 0

void SetCoeff(ZZ_pEX& x, long i);
// makes coefficient of X^i equal to 1;  error is raised if i < 0

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

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

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

void MakeMonic(ZZ_pEX& x); 
// if x != 0 makes x into its monic associate; LeadCoeff(x) must be
// invertible in this case

void reverse(ZZ_pEX& x, const ZZ_pEX& a, long hi);
ZZ_pEX reverse(const ZZ_pEX& a, long hi);

void reverse(ZZ_pEX& x, const ZZ_pEX& a);
ZZ_pEX reverse(const ZZ_pEX& a);

// x = reverse of a[0]..a[hi] (hi >= -1);
// hi defaults to deg(a) in second version

void VectorCopy(vec_ZZ_pE& x, const ZZ_pEX& a, long n);
vec_ZZ_pE VectorCopy(const ZZ_pEX& a, long n);
// x = copy of coefficient vector of a of length exactly n.
// input is truncated or padded with zeroes as appropriate.




/**************************************************************************\

                             Random Polynomials

\**************************************************************************/

void random(ZZ_pEX& x, long n);
ZZ_pEX random_ZZ_pEX(long n);
// x = random polynomial of degree < n 


/**************************************************************************\

                    Polynomial Evaluation and related problems

\**************************************************************************/


void BuildFromRoots(ZZ_pEX& x, const vec_ZZ_pE& a);
ZZ_pEX BuildFromRoots(const vec_ZZ_pE& a);
// computes the polynomial (X-a[0]) ... (X-a[n-1]), where n = a.length()

void eval(ZZ_pE& b, const ZZ_pEX& f, const ZZ_pE& a);
ZZ_pE eval(const ZZ_pEX& f, const ZZ_pE& a);
// b = f(a)

void eval(ZZ_pE& b, const ZZ_pX& f, const ZZ_pE& a);
ZZ_pE eval(const ZZ_pEX& f, const ZZ_pE& a);
// b = f(a); uses ModComp algorithm for ZZ_pX

void eval(vec_ZZ_pE& b, const ZZ_pEX& f, const vec_ZZ_pE& a);
vec_ZZ_pE eval(const ZZ_pEX& f, const vec_ZZ_pE& a);
//  b.SetLength(a.length()); b[i] = f(a[i]) for 0 <= i < a.length()

void interpolate(ZZ_pEX& f, const vec_ZZ_pE& a, const vec_ZZ_pE& b);
ZZ_pEX interpolate(const vec_ZZ_pE& a, const vec_ZZ_pE& b);
// interpolates the polynomial f satisfying f(a[i]) = b[i].  

/**************************************************************************\

                       Arithmetic mod X^n

Required: n >= 0; otherwise, an error is raised.

\**************************************************************************/

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

void MulTrunc(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& b, long n);
ZZ_pEX MulTrunc(const ZZ_pEX& a, const ZZ_pEX& b, long n);
// x = a * b % X^n

void SqrTrunc(ZZ_pEX& x, const ZZ_pEX& a, long n);
ZZ_pEX SqrTrunc(const ZZ_pEX& a, long n);
// x = a^2 % X^n

void InvTrunc(ZZ_pEX& x, const ZZ_pEX& a, long n);
ZZ_pEX InvTrunc(ZZ_pEX& x, const ZZ_pEX& a, long n);
// computes x = a^{-1} % X^m.  Must have ConstTerm(a) invertible.

/**************************************************************************\

                Modular Arithmetic (without pre-conditioning)

Arithmetic mod f.

All inputs and outputs are polynomials of degree less than deg(f), and
deg(f) > 0.


NOTE: if you want to do many computations with a fixed f, use the
ZZ_pEXModulus data structure and associated routines below for better
performance.

\**************************************************************************/

void MulMod(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& b, const ZZ_pEX& f);
ZZ_pEX MulMod(const ZZ_pEX& a, const ZZ_pEX& b, const ZZ_pEX& f);
// x = (a * b) % f

void SqrMod(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& f);
ZZ_pEX SqrMod(const ZZ_pEX& a, const ZZ_pEX& f);
// x = a^2 % f

void MulByXMod(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& f);
ZZ_pEX MulByXMod(const ZZ_pEX& a, const ZZ_pEX& f);
// x = (a * X) mod f

void InvMod(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& f);
ZZ_pEX InvMod(const ZZ_pEX& a, const ZZ_pEX& f);
// x = a^{-1} % f, error is a is not invertible

long InvModStatus(ZZ_pEX& x, const ZZ_pEX& a, const ZZ_pEX& f);
// if (a, f) = 1, returns 0 and sets x = a^{-1} % f; otherwise,
// returns 1 and sets x = (a, f)


/**************************************************************************\

                     Modular Arithmetic with Pre-Conditioning

If you need to do a lot of arithmetic modulo a fixed f, build
ZZ_pEXModulus F for f.  This pre-computes information about f that
speeds up subsequent computations.

As an example, the following routine the product modulo f of a vector
of polynomials.

#include <NTL/ZZ_pEX.h>

void product(ZZ_pEX& x, const vec_ZZ_pEX& v, const ZZ_pEX& f)
{
   ZZ_pEXModulus F(f);
   ZZ_pEX res;
   res = 1;
   long i;
   for (i = 0; i < v.length(); i++)
      MulMod(res, res, v[i], F); 
   x = res;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合网 天天综合色| 日韩网站在线看片你懂的| 粉嫩av一区二区三区在线播放| 无吗不卡中文字幕| 成人午夜激情影院| 青娱乐精品视频在线| 亚洲国产精品一区二区尤物区| 极品瑜伽女神91| 国产乱国产乱300精品| 亚洲一区视频在线观看视频| 午夜av电影一区| 久久久久久久综合狠狠综合| 在线视频欧美区| 在线看国产一区| 欧美三片在线视频观看| 欧美精品久久99久久在免费线| 欧美日韩一区二区三区免费看| 欧美日韩精品一区二区三区| 91.com视频| 国产亚洲精品资源在线26u| 国产欧美日韩另类视频免费观看| 国产精品免费看片| 一区二区成人在线视频 | 国产清纯白嫩初高生在线观看91| 26uuu久久天堂性欧美| 中文字幕国产一区| 亚洲香肠在线观看| 麻豆精品视频在线观看免费 | 日韩亚洲电影在线| 国产人成一区二区三区影院| 国产精品护士白丝一区av| 亚洲国产日产av| 极品少妇xxxx精品少妇| 成人av一区二区三区| 欧美三级韩国三级日本三斤| 2欧美一区二区三区在线观看视频| 国产精品久久久久久妇女6080 | 91在线视频网址| 欧美日本一区二区三区四区 | 精品国产99国产精品| 综合久久一区二区三区| 日韩avvvv在线播放| 99久久国产综合精品女不卡| 欧美精品99久久久**| 国产精品国产三级国产aⅴ原创| 亚洲综合色网站| 国产aⅴ综合色| 制服丝袜亚洲色图| 综合久久久久综合| 国产综合久久久久影院| 在线免费观看视频一区| 中文字幕乱码一区二区免费| 午夜在线成人av| 97久久超碰国产精品电影| 久久色在线视频| 麻豆精品一区二区av白丝在线 | 亚洲国产精品久久不卡毛片| 国精品**一区二区三区在线蜜桃| 欧美性生活久久| 亚洲色图视频免费播放| 国产不卡在线视频| 欧美精品一区二区三| 日韩精品视频网站| 欧美日韩一区二区三区高清| 亚洲人成网站影音先锋播放| 国产福利一区二区三区| 精品成人a区在线观看| 日本vs亚洲vs韩国一区三区| 欧美色图激情小说| 亚洲一二三四区| 色婷婷精品久久二区二区蜜臂av | 在线视频国内一区二区| 综合久久国产九一剧情麻豆| 成人高清视频在线| 国产欧美中文在线| 国产福利视频一区二区三区| 久久久久国产精品免费免费搜索| 久久疯狂做爰流白浆xx| 精品少妇一区二区三区视频免付费| 天堂久久一区二区三区| 4438x成人网最大色成网站| 亚洲国产一区二区三区青草影视| 欧洲在线/亚洲| 亚洲成人动漫一区| 欧美乱妇23p| 麻豆成人久久精品二区三区红 | 国产黄色精品视频| 国产精品美女久久久久久2018| 成人三级伦理片| 亚洲色图一区二区三区| 欧美色手机在线观看| 日本欧美肥老太交大片| 欧美大片顶级少妇| 高清国产午夜精品久久久久久| 国产精品三级av在线播放| 91麻豆精东视频| 亚洲高清中文字幕| 精品福利二区三区| av亚洲精华国产精华精| 亚洲激情av在线| 日韩天堂在线观看| 成人性视频免费网站| 亚洲男同性恋视频| 欧美电影免费观看高清完整版在线| 国产一区二区三区电影在线观看| 国产精品美女久久久久久| 欧美日韩国产首页| 国产很黄免费观看久久| 一区二区三区高清| 精品免费视频.| 色视频欧美一区二区三区| 日韩和欧美一区二区| 欧美国产综合一区二区| 欧美丝袜第三区| 国产91清纯白嫩初高中在线观看| 亚洲专区一二三| 国产日韩精品一区| 欧美丰满一区二区免费视频| 国产中文一区二区三区| 一区二区三区精品视频在线| 亚洲精品一区二区三区福利 | 亚洲国产中文字幕在线视频综合| 日韩免费高清av| 欧美日韩在线观看一区二区| 精东粉嫩av免费一区二区三区| 亚洲美女电影在线| 国产人成亚洲第一网站在线播放| 欧美美女网站色| 色婷婷国产精品| 成人精品gif动图一区| 蜜臀av亚洲一区中文字幕| 一区二区高清免费观看影视大全 | 成人黄页毛片网站| 精品午夜久久福利影院| 亚洲成人av福利| 亚洲精品视频在线看| 国产校园另类小说区| 日韩美女主播在线视频一区二区三区| 在线观看91精品国产入口| av在线不卡观看免费观看| 韩国理伦片一区二区三区在线播放| 亚洲激情综合网| 亚洲免费在线电影| 中文字幕日韩欧美一区二区三区| 久久久国际精品| 精品成人a区在线观看| 欧美一二三在线| 日韩视频中午一区| 日韩欧美你懂的| 日韩三级在线观看| 日韩精品中午字幕| 欧美一级xxx| 欧美va亚洲va国产综合| 日韩欧美一区二区不卡| 日韩视频免费观看高清完整版在线观看 | 亚洲欧美色综合| ●精品国产综合乱码久久久久| 国产精品无遮挡| 亚洲欧洲av色图| 亚洲欧美aⅴ...| 亚洲国产一区二区在线播放| 亚洲午夜电影在线| 视频一区中文字幕国产| 日韩电影在线免费看| 美腿丝袜亚洲三区| 国产一区二区h| 国产成人在线视频网址| www..com久久爱| 91成人网在线| 欧美一区二区成人| 久久日一线二线三线suv| 国产欧美精品日韩区二区麻豆天美| 欧美国产日本视频| 亚洲精品ww久久久久久p站| 亚洲国产精品一区二区www在线| 亚洲成人激情av| 国产曰批免费观看久久久| 成人av网站大全| 欧美麻豆精品久久久久久| 久久综合久久综合久久| 国产精品国产三级国产专播品爱网| 亚洲欧美日韩国产另类专区| 丝袜脚交一区二区| 国产高清精品在线| 欧美性受xxxx| 久久久电影一区二区三区| 亚洲欧美日本在线| 老汉av免费一区二区三区| 成人av在线观| 91精品欧美一区二区三区综合在| 久久久精品一品道一区| 亚洲综合视频网| 国产一区二区三区精品视频| 色噜噜夜夜夜综合网| 精品国产免费久久 | 91精品国产91久久久久久最新毛片| 久久久综合激的五月天| 亚洲成人午夜影院| 国产成人av电影在线播放| 69成人精品免费视频|