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

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

?? zzx.txt

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


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

MODULE: ZZX

SUMMARY:

The class ZZX implements polynomials in ZZ[X], i.e., univariate
polynomials with integer coefficients.

Polynomial multiplication is implemented using one of 4 different
algorithms:

1) classical 

2) Karatsuba

3) Schoenhage & Strassen --- performs an FFT by working
     modulo a "Fermat number" of appropriate size...
     good for polynomials with huge coefficients
     and moderate degree

4) CRT/FFT --- performs an FFT by working modulo several
     small primes...good for polynomials with moderate coefficients
     and huge degree.

The choice of algorithm is somewhat heuristic, and may not always be
perfect.

Many thanks to Juergen Gerhard <jngerhar@plato.uni-paderborn.de> for
pointing out the deficiency in the NTL-1.0 ZZX arithmetic, and for
contributing the Schoenhage/Strassen code.

Extensive use is made of modular algorithms to enhance performance
(e.g., the GCD algorithm and amny others).

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

#include <NTL/vec_ZZ.h>
#include "zz_pX.h"
#include <NTL/ZZ_pX.h>


class ZZX {
public:


   ZZX(); // initial value 0

   ZZX(const ZZX& a); // copy

   ZZX& operator=(const ZZX& a); // assignment
   ZZX& operator=(const ZZ& a);
   ZZX& operator=(long a);

   ~ZZX();

   ZZX(long i, const ZZ& c); // initial value X^i*c
   ZZX(long i, long c); 

   // ...

};



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

                                  Comparison

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

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

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

// PROMOTIONS: operators ==, != promote {long, ZZ} to ZZX on (a, b).


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

                                   Addition

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

// operator notation:

ZZX operator+(const ZZX& a, const ZZX& b);
ZZX operator-(const ZZX& a, const ZZX& b);
ZZX operator-(const ZZX& a); // unary -

ZZX& operator+=(ZZX& x, const ZZX& a);
ZZX& operator-=(ZZX& x, const ZZX& a);

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

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


// procedural versions:

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

// PROMOTIONS: binary +, - and procedures add, sub promote {long, ZZ} 
// to ZZX on (a, b).


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

                               Multiplication

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

// operator notation:

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

ZZX& operator*=(ZZX& x, const ZZX& a);


// procedural versions:

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

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

// PROMOTIONS: operator * and procedure mul promote {long, ZZ} to ZZX 
// on (a, b).


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

                               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:

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

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

// procedural versions:

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

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



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

                                  Division

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


// Given polynomials a, b in ZZ[X], there exist polynomials
// q, r in QQ[X] such that a = b*q + r, deg(r) < deg(b).
// These routines return q and/or r if q and/or r lie(s) in ZZ[X],
// and otherwise raise an error.  

// Note that if the leading coefficient of b is 1 or -1, 
// then q and r always lie in ZZ[X], and no error can occur.

// For example, you can write f/2 for a ZZX f.  If all coefficients
// of f are even, the result is f with a factor of two removed;
// otherwise, an error is raised.  More generally, f/g will be
// evaluate q in ZZ[X] such that f = q*g if such a q exists,
// and will otherwise raise an error.

// See also below the routines for pseudo-division and division
// predicates for routines that are perhaps more useful in
// some situations.


// operator notation: 

ZZX operator/(const ZZX& a, const ZZX& b);
ZZX operator/(const ZZX& a, const ZZ& b);
ZZX operator/(const ZZX& a, long b);

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

ZZX& operator/=(ZZX& x, const ZZX& b);
ZZX& operator/=(ZZX& x, const ZZ& b);
ZZX& operator/=(ZZX& x, long b);

ZZX& operator%=(ZZX& x, const ZZX& b);


// procedural versions:

void DivRem(ZZX& q, ZZX& r, const ZZX& a, const ZZX& b);
// computes q, r such that a = b q + r and deg(r) < deg(b).
// requires LeadCoeff(b) is a unit (+1, -1); otherwise,
// an error is raised.

void div(ZZX& q, const ZZX& a, const ZZX& b);
void div(ZZX& q, const ZZX& a, const ZZ& b);
void div(ZZX& q, const ZZX& a, long b);
// same as DivRem, but only computes q

void rem(ZZX& r, const ZZX& a, const ZZX& b);
// same as DivRem, but only computes r



// divide predicates:

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


long divide(const ZZX& a, const ZZX& b);
long divide(const ZZX& a, const ZZ& b);
long divide(const ZZX& a, long b);
// if b | a, returns 1; otherwise returns 0

// These algorithms employ a modular approach, performing the division
// modulo small primes (reconstructing q via the CRT).  It is
// usually much faster than the general division routines above
// (especially when b does not divide a).


void content(ZZ& d, const ZZX& f);
ZZ content(const ZZX& f);
// d = content of f, sign(d) == sign(LeadCoeff(f)); content(0) == 0

void PrimitivePart(ZZX& pp, const ZZX& f);
ZZX PrimitivePart(const ZZX& f); 
// pp = primitive part of f, LeadCoeff(pp) >= 0; PrimitivePart(0) == 0



// pseudo-division:

void PseudoDivRem(ZZX& q, ZZX& r, const ZZX& a, const ZZX& b);
// performs pseudo-division: computes q and r with deg(r) < deg(b),
// and LeadCoeff(b)^(deg(a)-deg(b)+1) a = b q + r.  Only the classical
// algorithm is used.

void PseudoDiv(ZZX& q, const ZZX& a, const ZZX& b);
ZZX PseudoDiv(const ZZX& a, const ZZX& b);
// same as PseudoDivRem, but only computes q

void PseudoRem(ZZX& r, const ZZX& a, const ZZX& b);
ZZX PseudoRem(const ZZX& a, const ZZX& b);
// same as PseudoDivRem, but only computes r


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

                                  GCD's

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品综合久久久久久8888| 欧美丰满嫩嫩电影| 在线电影一区二区三区| 国产精品三级电影| 免费看日韩a级影片| 色呦呦日韩精品| 精品国精品国产尤物美女| 一级特黄大欧美久久久| 国产在线国偷精品产拍免费yy| 色88888久久久久久影院按摩| 久久精品欧美一区二区三区不卡| 亚洲成人午夜电影| 91女神在线视频| 国产三级精品三级在线专区| 日韩高清不卡在线| 91丨九色丨黑人外教| 久久久www成人免费无遮挡大片| 午夜不卡av在线| 色综合咪咪久久| 国产精品久久午夜| 国产成人综合在线| 日韩精品一区二区三区四区视频| 亚洲愉拍自拍另类高清精品| 91色|porny| 亚洲四区在线观看| 成人涩涩免费视频| 国产婷婷色一区二区三区在线| 免费看日韩精品| 欧美三级电影在线观看| 亚洲一区电影777| 日本韩国欧美国产| 亚洲综合激情另类小说区| 91麻豆高清视频| 亚洲精品欧美激情| 在线视频欧美区| 一区av在线播放| 色婷婷av久久久久久久| 亚洲欧美国产毛片在线| 色视频欧美一区二区三区| 亚洲欧美一区二区三区国产精品| 99国产精品久久久久久久久久| 综合久久久久久| 色婷婷综合中文久久一本| 亚洲免费观看高清完整版在线观看熊 | 一本一道综合狠狠老| 综合av第一页| 91成人看片片| 男男成人高潮片免费网站| 欧美一级电影网站| 国产一二精品视频| 国产精品成人一区二区艾草| 色综合 综合色| 一区二区三区丝袜| 欧美一区二区三区影视| 久久99精品国产麻豆婷婷| 国产欧美一区二区精品婷婷 | 色婷婷av一区| 日韩激情视频网站| 2020日本不卡一区二区视频| 大桥未久av一区二区三区中文| 亚洲免费av高清| 91精品国产综合久久精品| 激情文学综合网| 中文字幕av免费专区久久| 91福利国产成人精品照片| 丝袜亚洲精品中文字幕一区| 久久久久久久久久久电影| 色先锋资源久久综合| 久久电影国产免费久久电影 | jlzzjlzz亚洲日本少妇| 一区二区高清视频在线观看| 精品久久久网站| 91免费小视频| 美女一区二区三区在线观看| 亚洲色图.com| 日韩一区二区电影网| 色一区在线观看| 国产一区二区三区在线观看免费视频 | 一区二区三区四区不卡在线| 精品国产乱码久久久久久老虎| 91在线国内视频| 日韩电影免费一区| 最新国产精品久久精品| 欧美一区二区三区啪啪| 99久久久久久| 国产精品亚洲视频| 视频一区免费在线观看| 亚洲欧洲精品天堂一级| 精品久久人人做人人爽| 欧美日韩另类一区| 99re免费视频精品全部| 国产在线精品免费| 青娱乐精品视频在线| 一区二区三区欧美日韩| 国产精品女人毛片| 精品美女被调教视频大全网站| 在线免费观看视频一区| 成人av免费观看| 国产一区二区三区免费看| 日韩精品电影在线观看| 一区二区激情小说| 国产精品传媒在线| 中文一区在线播放| 久久久美女毛片| 欧美成人a在线| 日韩亚洲欧美一区| 欧美视频精品在线观看| 欧美艳星brazzers| 色网站国产精品| 日本韩国欧美在线| 99精品热视频| 91在线观看成人| k8久久久一区二区三区| www.综合网.com| 成人av在线看| 成人av电影在线| 91首页免费视频| 91网上在线视频| 欧美在线播放高清精品| 日本高清免费不卡视频| 欧美图区在线视频| 欧美日韩精品高清| 欧美日韩久久不卡| 日韩午夜中文字幕| 日韩欧美亚洲一区二区| 精品国免费一区二区三区| www精品美女久久久tv| 26uuu精品一区二区在线观看| 久久这里只精品最新地址| 国产人成亚洲第一网站在线播放 | jvid福利写真一区二区三区| 色哟哟一区二区在线观看| 色婷婷综合久久久| 欧美专区在线观看一区| 欧美一区二区视频网站| 日韩欧美国产小视频| 久久精品日韩一区二区三区| 亚洲欧洲在线观看av| 午夜久久久久久电影| 九九**精品视频免费播放| 成人免费看黄yyy456| 在线免费观看视频一区| 日韩欧美国产高清| 国产精品国产三级国产普通话99| 亚洲欧洲国产日韩| 日本欧美在线观看| 国产成a人亚洲| 欧美在线观看一区| 久久综合999| 亚洲自拍与偷拍| 精品一区二区三区在线视频| 成人一道本在线| 欧美美女激情18p| 国产精品视频看| 日韩综合小视频| 成人av电影免费观看| 欧美一区二区精品在线| 国产精品婷婷午夜在线观看| 日韩电影一区二区三区| 成人激情图片网| 日韩午夜在线影院| 亚洲人午夜精品天堂一二香蕉| 欧美aⅴ一区二区三区视频| 波多野洁衣一区| 日韩一区二区三区视频在线| 一区二区在线观看av| 韩国一区二区三区| 欧美日韩一区高清| 国产女人18毛片水真多成人如厕 | 日韩欧美国产精品一区| 亚洲人成网站色在线观看| 国产精品一级黄| 欧美一级精品大片| 亚洲欧美国产高清| 国产suv精品一区二区883| 91精品午夜视频| 亚洲一区二区三区四区中文字幕| 成人视屏免费看| 久久日韩粉嫩一区二区三区| 秋霞午夜鲁丝一区二区老狼| 在线观看网站黄不卡| 亚洲人成亚洲人成在线观看图片 | 在线观看一区二区精品视频| 欧美激情一区二区三区四区| 极品美女销魂一区二区三区| 欧美丰满高潮xxxx喷水动漫| 一区二区三区国产| 91视频www| 成人欧美一区二区三区视频网页| 开心九九激情九九欧美日韩精美视频电影 | 精品日韩欧美一区二区| 日韩一区精品视频| 精品视频在线视频| 亚洲成人777| 欧美精品日韩一区| 午夜电影网一区| 欧美一区二区在线不卡| 日韩福利视频网| 91精品国产综合久久久蜜臀图片| 日本亚洲一区二区|