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

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

?? vec_gf2.txt

?? 密碼大家Shoup寫的數論算法c語言實現
?? TXT
字號:
/**************************************************************************\MODULE: vec_GF2SUMMARY:a vec_GF2 is a vector of GF2s that behaves much like generic NTL vectors(see vector.txt), but there are some differences.For efficiency, elements of a vec_GF2 are "packed" into a word.One may use subscript notation v[i] or v(i) as an r-valuein an expression, and as an l-value in the following contexts:   * on the left-hand side of an assignment operator,     * on the left-hand side of +=, -=, *=, /=,    * and as an argument to ++ and --.One may not use the expression v[i] or v(i) to initialize a non-const reference parameter.  For example, if v, w are vec_GF2's, you can write:   v[i] = 0;   v[i] = v[j] + w[k];   v[i] += 1;   v[i]++;   v[i] += w[i];It is perhaps helpful to describe how this is implemented,without going into all the details.The type of a subscript-expression is "subscript_GF2" or"const_subscript_GF2", the latter chosen if the vector is read-only.Both of these "helper" types have automatic conversions operators to GF2.  Moreover, assignment and increment operatorsare defined for "subscript_GF2" (but not for "const_subscript_GF2").These operators return references to themselves, so one caniterate assignment operators as usual (as usual in NTL, the return type of post-increment/decrement is void).As an alternative, one can use the get and put methods below to accessvector elements.There is one subtle but important difference in the semanticsof vec_GF2 and that of generic NTL vectors.  With a vec_GF2, whenever itslength is increased (via SetLength), the "new" bits are always 0.For example, if v.length() == 20, then    v.SetLength(10); v.setLength(20);will effectively clear bits 10..19 of v.This is quite different from the semantics of generic NTL vectors, wherethe above sequence would not change the value of v at all.One has to be aware of this difference, but it will not matterin most ordinary circumstances.\**************************************************************************/class vec_GF2 {public:   vec_GF2(); // 0 length vector   vec_GF2(INIT_SIZE_TYPE, long n); // initialize to length n                                      // usage: vec_GF2(INIT_SIZE, n)   vec_GF2(const vec_GF2& a); // copy constructor   vec_GF2& operator=(const vec_GF2& a); // assignment   ~vec_GF2(); // destructor   void SetLength(long n); // set length to n bits   void SetMaxLength(long n); // allocate space for n bits   long length(); // bit length   long MaxLength(); // max allocated bit length   // SIZE INVARIANT: length() <= MaxLength() < 2^(NTL_BITS_PER_LONG-4)   void FixLength(long n); // fix length to n bits      // can only be applied after default initialization or kill   long fixed(); // test if length has been fixed   void kill(); // free space and make length 0   GF2 get(long i) const; // fetch value at index i (indexing from 0)   void put(long i, GF2 a); // write value a to index i (indexing from 0)   void put(long i, long a);    // Here are the subscripting operators, defined using the   // "helper" classes subscript_GF2 and const_subscript_GF2.   subscript_GF2 operator[](long i);   subscript_GF2 operator()(long i);   const_subscript_GF2 operator[](long i) const;   const_subscript_GF2 operator()(long i) const;};void swap(vec_GF2& x, vec_GF2& y);// swap x and y (fast pointer swap)void append(vec_GF2& v, GF2 a);// append a to vvoid append(vec_GF2& v, const vec_GF2& a);// append a to v// equality operators:long operator==(const vec_GF2& a, const vec_GF2& b);long operator!=(const vec_GF2& a, const vec_GF2& b);// I/O operators:ostream& operator<<(ostream& s, const vec_GF2& a);istream& operator>>(istream& s, vec_GF2& a);// The I/O format is [a_0 a_1 ... a_{n-1}], where each a_i is "0" or "1".// On input, the a_i may be arbitrary integers, which are reduced mod 2.// utility routines:void clear(vec_GF2& x); // clear all bits--length unchangedlong IsZero(const vec_GF2& a); // test if all bits are zerovoid shift(vec_GF2& x, const vec_GF2& a, long n);vec_GF2 shift(const vec_GF2& a, long n);// x = a shifted n places, where n may be positive or negative.// Generally, x[i] = a[i-n], so positive n shifts to a higher index.// The length of x is set to the length of a, and bits // are zero-filled or discarded as necessary.void reverse(vec_GF2& x, const vec_GF2& a); // c = a reversedvec_GF2 reverse(const vec_GF2& a);long weight(const vec_GF2& a); // return number of 1 bits in avoid random(vec_GF2& x, long n);  // x = random vector of length nvec_GF2 random_vec_GF2(long n);// arithmetic operations over GF(2):void add(vec_GF2& x, const vec_GF2& a, const vec_GF2& b);void sub(vec_GF2& x, const vec_GF2& a, const vec_GF2& b);void negate(vec_GF2& x, const vec_GF2& a);void mul(vec_GF2& x, const vec_GF2& a, GF2 b);void mul(vec_GF2& x, const vec_GF2& a, long b);void mul(vec_GF2& x, GF2 a, const vec_GF2& b);void mul(vec_GF2& x, long a, const vec_GF2& b);// x = a * bvoid InnerProduct(GF2& x, const vec_GF2& a, const vec_GF2& b);// vectors may differ in lengthvoid VectorCopy(vec_GF2& x, const vec_GF2& a, long n);vec_GF2 VectorCopy(const vec_GF2& a, long n);// x = a copy of a of length exactly n.// The input is truncated or padded with zeroes, as necessary.// arithmetic operator notation:vec_GF2 operator+(const vec_GF2& a, const vec_GF2& b);vec_GF2 operator-(const vec_GF2& a, const vec_GF2& b);vec_GF2 operator-(const vec_GF2& a);// scalar mul:vec_GF2 operator*(const vec_GF2& a, GF2 b);vec_GF2 operator*(const vec_GF2& a, long b);vec_GF2 operator*(GF2 a, const vec_GF2& b); vec_GF2 operator*(long a, const vec_GF2& b); // inner product: inline GF2 operator*(const vec_GF2& a, const vec_GF2& b); // assignment operator notation:vec_GF2& operator+=(vec_GF2& x, const vec_GF2& a);vec_GF2& operator-=(vec_GF2& x, const vec_GF2& a);vec_GF2& operator*=(vec_GF2& x, GF2 a);vec_GF2& operator*=(vec_GF2& x, long a);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲伊人伊色伊影伊综合网| 一区二区三区欧美激情| 成人精品小蝌蚪| 国产精品美女久久久久久久久| 成人性生交大合| 亚洲男人天堂一区| 欧美精品vⅰdeose4hd| 久88久久88久久久| 欧美国产欧美综合| 91久久精品一区二区三| 日韩avvvv在线播放| 国产欧美综合在线| 欧美图片一区二区三区| 免费人成在线不卡| 国产精品麻豆久久久| 欧美日韩一区二区在线观看| 国产一区二区免费视频| 一区二区在线观看免费视频播放| 欧美一级日韩不卡播放免费| 福利一区福利二区| 天天操天天色综合| 中文字幕乱码日本亚洲一区二区| 欧美日韩在线一区二区| 国产成人午夜精品5599| 婷婷成人激情在线网| 国产拍欧美日韩视频二区| 337p亚洲精品色噜噜噜| 色综合一区二区三区| 国产精品亚洲人在线观看| 樱桃国产成人精品视频| 国产欧美日韩三级| 欧美videos中文字幕| 欧美亚洲免费在线一区| 不卡视频一二三四| 国产九九视频一区二区三区| 日韩vs国产vs欧美| 亚洲小说欧美激情另类| 综合自拍亚洲综合图不卡区| 精品国产乱子伦一区| 欧美日韩一级二级| 欧美人牲a欧美精品| 色综合天天综合给合国产| caoporn国产一区二区| 成人av免费在线播放| 成人免费黄色在线| 成人avav影音| 色一情一伦一子一伦一区| 99精品视频在线免费观看| 国产不卡一区视频| 大白屁股一区二区视频| 国产大陆a不卡| 99久久精品免费看国产| 91色九色蝌蚪| 欧美日韩精品专区| 欧美在线小视频| 在线成人免费视频| 欧美一区二区三区人| 欧美一级午夜免费电影| 日韩美一区二区三区| 国产亚洲午夜高清国产拍精品| 久久精品人人做人人综合| 久久精品视频网| 亚洲日本在线视频观看| 亚洲一本大道在线| 蜜乳av一区二区三区| 国产69精品一区二区亚洲孕妇| 成人av在线一区二区三区| 欧洲国内综合视频| 日韩片之四级片| 中文字幕亚洲一区二区va在线| 一区二区三区资源| 日本不卡视频在线观看| 国产成人午夜视频| 欧美中文字幕一区| 26uuu国产在线精品一区二区| 国产午夜精品理论片a级大结局| 亚洲人成电影网站色mp4| 欧美aaa在线| 精品三级av在线| 欧美日韩国产综合久久| 精品美女被调教视频大全网站| 亚洲免费三区一区二区| 国产大陆a不卡| 日韩一区国产二区欧美三区| 亚洲国产视频在线| 一本色道久久综合亚洲91 | 欧美日韩国产a| 国产精选一区二区三区| 欧洲在线/亚洲| 中文字幕免费不卡| 久久精品国产亚洲一区二区三区| 高清国产一区二区| 欧美电视剧在线观看完整版| 亚洲欧美日韩小说| 成人精品国产福利| 欧美成人a在线| 石原莉奈在线亚洲三区| 91色视频在线| 成人欧美一区二区三区在线播放| 看片网站欧美日韩| 欧美一区二区在线观看| 国产精品久久久久四虎| 欧美一区二区福利视频| 亚洲精品国产视频| jlzzjlzz欧美大全| 久久精品人人做人人爽97| 久久国产日韩欧美精品| 欧美一级片在线观看| 亚洲成人动漫一区| 欧美午夜不卡视频| 日韩中文字幕一区二区三区| 欧美优质美女网站| 一区二区三区在线视频观看58| 91精品国产综合久久久久久| 亚洲精品视频自拍| 在线视频亚洲一区| 三级久久三级久久久| 91精品国产色综合久久ai换脸 | 337p粉嫩大胆色噜噜噜噜亚洲 | 国产精品久久久久久亚洲伦| thepron国产精品| 亚洲欧美日韩久久| 欧美男女性生活在线直播观看| 丝瓜av网站精品一区二区 | 久久影院电视剧免费观看| 国产专区欧美精品| 中文字幕中文字幕一区二区| 91在线免费看| 亚洲福利视频一区二区| 日韩免费观看高清完整版| 国产精品亚洲一区二区三区妖精 | 91啪九色porn原创视频在线观看| 悠悠色在线精品| 欧美成人aa大片| 91丨porny丨国产| 午夜欧美在线一二页| 久久久夜色精品亚洲| 99久久久国产精品| 久久99国产精品久久| 亚洲欧美日韩小说| 欧美成人乱码一区二区三区| 成人国产在线观看| 久久精品国产网站| 一区二区三区欧美久久| xnxx国产精品| 欧美男男青年gay1069videost| 国产999精品久久久久久绿帽| 午夜欧美2019年伦理| 国产精品久久精品日日| 日韩一区二区三区电影在线观看| 成人免费av网站| 蓝色福利精品导航| 午夜久久久影院| 青青草原综合久久大伊人精品| 日本一二三不卡| 精品欧美久久久| 欧美一区二区三区成人| 91视频免费观看| 日韩免费视频一区| 蜜芽一区二区三区| 有码一区二区三区| 亚洲视频资源在线| 亚洲国产精品传媒在线观看| 欧美日韩国产色站一区二区三区| 豆国产96在线|亚洲| 国产一区二区三区免费看 | 日韩午夜激情电影| 欧美一区二区在线不卡| 欧美日韩国产片| 欧美色男人天堂| 欧美日韩精品欧美日韩精品| 91麻豆福利精品推荐| 一本久久精品一区二区| 色av一区二区| 欧美日韩精品一区二区三区| 欧美色综合影院| 91精品国产色综合久久ai换脸| 欧美另类z0zxhd电影| 美女网站一区二区| 亚洲视频一区在线观看| 欧美色区777第一页| 国产精品资源站在线| 日韩综合小视频| 亚洲成av人片| 麻豆中文一区二区| 狠狠色丁香婷婷综合| 国产精品一区二区91| 色综合亚洲欧洲| 欧美肥妇free| 欧美激情一区二区三区不卡 | 中文字幕欧美区| 久久99精品国产91久久来源| 国产麻豆一精品一av一免费 | 欧美电影免费观看高清完整版在 | 久久精品人人做人人综合 | 久久久精品人体av艺术| 亚洲人成网站在线| 精品写真视频在线观看| 成人av动漫网站| 欧美一区二区三区性视频|