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

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

?? tour-struct.html

?? 一個(gè)比較通用的大數(shù)運(yùn)算庫(kù)
?? HTML
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<pre>
   (ZZ_pX, ZZ_pX), (ZZ_pX, ZZ_p), (ZZ_pX, long), (ZZ_p, ZZ_pX), (long, ZZ_pX)
</pre>
Each of these functions effectively converts the argument to be promoted
to a <tt>ZZ_pX</tt>.

<p>
Note that when promoting a pair of arguments, at least one
of the arguments must be of the target type.

<p>
I have tried to be very consistent with these promotions so
that one usually won't need to hunt through the documentation.
For a given type, there is a natural, fixed set of types
that promote to it.
Here is the complete list:
<pre>
   destination: source
   
   xdouble:     double
   quad_float:  double
   RR:          double
   ZZ:          long
   ZZ_p:        long
   ZZ_pX:       long, ZZ_p
   zz_p:        long
   ZZ_pX:       long, zz_p
   ZZX:         long, ZZ
   GF2:         long
   GF2X:        long, GF2
   GF2E:        long, GF2
   GF2EX:       long, GF2, GF2E
   ZZ_pE:       long, ZZ_p
   ZZ_pEX:      long, ZZ_p, ZZ_pE
   zz_pE:       long, zz_p
   zz_pEX:      long, zz_p, zz_pE
</pre>

<p>
All the promotions are documented, but here
are a few general rules describing the available promotions:

<ul>

<li>
Promotions apply uniformly to both procedural and functional 
forms, as well as to the corresponding assignment operator forms.
E.g.,
<pre>
   x = x + 2;
   add(x, x, 2);
   x += 2;
</pre>

<li>
The addition, subtraction, multiplication, equality and comparison
routines always promote both arguments.  E.g.,
<pre>
   x = 2 + y;
   add(x, 2, y);
   if (3 > x || y == 5) ...
</pre>

<li>
The assignment operator always promotes the right-hand side.
E.g.,
<pre>
   x = 2;
</pre>

<li>
For non-integer,  non-polynomial types, the division routine
promotes both arguments.
E.g.,
<pre>
   RR x, y, z;
      ...
   x = 1.0/y;
   z = y/2.0;
</pre>

For integer or polynomial types, the division routine
promotes the denominator only. E.g.,
<pre>
   ZZ x, y;
      ...
   y = x/2;
</pre>
   

<li>
Matrix by scalar and vector by scalar multiplication promote the scalar.
E.g.,
<pre>
   vec_ZZ v, w;
      ...
   v = w*2;
   v = 2*w;
   v *= 2;
</pre>


<li>
The monomial constructors for polynomials
and the corresponding <tt>SetCoeff</tt> routines 
promote the coefficient argument.
E.g.,
<pre>
   ZZX f;
   f = ZZX(3, 5);  // f == 5*X^3
   SetCoeff(f, 0, 2);  // f == 5*x^3 + 2;
</pre>

<li>
In module <tt>ZZ</tt>, the modular arithmetic routines, as well as 
the bit-wise <i>and</i>, <i>or</i>, and <i>xor</i> routines promote their arguments.
There are also several other routines in module <tt>ZZ</tt>
that have both <tt>ZZ</tt> and <tt>long</tt> versions, e.g.,
<tt>NumBits</tt>, <tt>bit</tt>, <tt>weight</tt>.
Check the documentation in <a href="ZZ.txt"><tt>ZZ.txt</tt></a> 
for complete details.

</ul>

<p>


<p>
<p>
<h3>
Some Conversion and Promotion Technicalities 
</h3>
<p>

<p>
Usually, conversions and promotions are semantically equivalent.
There are three exceptions, however.

<p>
One exception 
is conversion of floating point <tt>double</tt> to
<tt>ZZ</tt>.
The safest way to do this is to apply an explicit conversion operator,
and not to rely on promotions.
For example, consider
<pre>
   ZZ a; double x;

   a = a + x;
</pre>
This is equivialent to
<pre>
   a = a + long(x);
</pre>
One could also use an explicit conversion function:
<pre>
   a = a + to_ZZ(x);
</pre>
The second version guarantees that there is no loss of precision,
and also guarantees that the floor of <tt>x</tt> is computed.
With the first version, one may lose precision when <tt>x</tt>
is converted to a <tt>long</tt>, and also the direction of truncation
for negative numbers is implementation dependent
(usually truncating towards zero, instead of computing the floor).
<p>
The second exception is conversion of <tt>unsigned int</tt>
or <tt>unsigned long</tt> to <tt>ZZ</tt>.
Again, the safest way to do this is with an explicit conversion operator.
As above, if one relies on promotions, the unsigned integer
will be first converted to a <i>signed</i> <tt>long</tt>, which is most
likely not what was intended.
<p>
The third exception can occur
on 64-bit machines when 
converting a signed or unsigned <tt>long</tt> to one of NTL's 
extended precision floating-point types (<tt>RR</tt> or <tt>quad_float</tt>).
These types only provide promotions from <tt>double</tt>,
and converting a <tt>long</tt> to a <tt>double</tt> on a 64-bit machine
can lead to a loss of precision.
Again, if one uses the appropriate NTL conversion routine,
no loss of precision will occur.

<p>

Another pitfall too avoid is initialzing <tt>ZZ</tt>s
with integer constants that are too big.
Consider the following:
<pre>
   ZZ x;
   x = 1234567890123456789012;
</pre>
This integer constant is too big, and this overflow
condition may or may not cause your compiler to give
you a warning or an error.
The easiest way to introduce such large constants into your
program is as follows:
<pre>
   ZZ x;
   x = to_ZZ("1234567890123456789012");
</pre>
Conversion functions are provided for converting <tt>C</tt> character strings
to  the types <tt>ZZ</tt>, <tt>RR</tt>, <tt>quad_float</tt>, 
and <tt>xdouble</tt>.

<p>
One should also be careful when converting to <tt>RR</tt>.
All of these conversions round to the current working precision, which is
usually, but not always what one wants.

<p>
<p>
<h3>
Aliasing
</h3>
<p>

An important feature of NTL is that aliasing of input and output
parameters is <i>always</i> allowed.  For example, if you
write <tt>mul(x, a, b)</tt>, then <tt>a</tt> or <tt>b</tt>
may alias (have the same address as) <tt>x</tt>
(or any object that <tt>x</tt> contains, e.g., scalar/vector
or scalar/polynomial multiplication).


<p>
<p>
<h3>
Constructors, Destructors, and Memory Management
</h3>
<p>

NTL generally takes care of managing the space occupied by large,
dynamically sized objects, like objects of class <tt>ZZ</tt> or any of
NTL's dynamic vectors.
However, it is helpful to understand a little of what is happening behind the scenes.

<p>
Most classes are implemented as a pointer, and the default constructor
just sets this pointer to 0.
Space is allocated for the object as needed, and when the object's
destructor is called, the space is freed.
Exceptions to this are the "modular" classes <tt>ZZ_p</tt>, <tt>ZZ_pE</tt>, <tt>zz_pE</tt>,
and <tt>GF2E</tt>.
Since, for a given modulus, the sizes of these objects are fixed, the default constructor
allocates the appropriate amount of space.

<p>
Copies are "deep" rather than "shallow".
This means the data itself is copied, and not just a pointer to the data.
If the destination object does not have enough space to hold the source data,
then the space held by the destination object is "grown".
This is done using the <tt>C</tt> routine <tt>realloc()</tt>.
Note, however, that if the source object is smaller than the destination
object, the space held by the destination object is retained.
This strategy usually yields reasonable behaviour;
however, one can take explicit control of the situation if necessary, since
almost all NTL classes have a method <tt>kill()</tt>
which frees all space held by the object, and sets its state to
the default initial state (a value 0 or a zero-length vector).

<p>
The only exception to the above are the special classes <tt>ZZ_pBak</tt>,
<tt>ZZ_pContext</tt>, and the analogous classes for <tt>zz_p</tt>, 
<tt>ZZ_pE</tt>, <tt>zz_pE</tt>, and <tt>GF2E</tt>.
These objects are implemented as referenced-counted pointers,
and copies are "shallow".

<p> 
While we are discussing initialization, there is one technical point
worth mentioning.
It is safe to declare global objects of any NTL type (except modular types),
as long as one uses only the default constructor.
For example, the global declarations
<pre>
   ZZ global_integer;
   vec_ZZ_p global_vector;
</pre>
should always work, since their initialization only involves
setting a pointer to 0.
However,
one should avoid initializing global objects with
non-default constructors, and should avoid doing anything that would lead to
non-trivial computations with NTL objects
prior to the beginning of the execution of routine <tt>main()</tt>.
The reasons for this are quite esoteric and can only be appreciated
by a true
<tt>C++</tt> afficianado.
Actually, most such initializations and computations probably will work,
but it is somewhat platform dependant.

<p>
Normal people usually do none of these things, so all of this
should not matter too much.
There is, however, one possible exception to this.
A programmer might want to have a global constant initialized like this:
<pre>
   const quad_float Pi = to_quad_float("3.1415926535897932384626433832795029");
</pre>
While this probably will work fine on most platforms, 
it may not be an entirely portable construction,
since it will involve a non-trivial computation before
execution of <tt>main()</tt> begins.
A more portable strategy
is to define a function returning a read-only
reference:
<pre>
   const quad_float&amp; Pi()
   {
      static quad_float pi = 
         to_quad_float("3.1415926535897932384626433832795029");
      return pi;
   }
</pre>
and then call the function <tt>Pi()</tt> to get a read-only reference
to this constant value:
<pre>
   area = Pi()*r*r;
</pre>
The initialization will then take place the first time <tt>Pi()</tt>
is called, which is presumably after <tt>main()</tt> starts,
and so everything should work fine.
This is a very simple and general strategy that most <tt>C++</tt>
experts recommend using whenever the initialization of a non-global
object requires non-trivial computation.






<p>

<center>
<a href="tour-examples.html"><img src="arrow1.gif" alt="[Previous]" align=bottom></a>
 <a href="tour.html"><img src="arrow2.gif" alt="[Up]" align=bottom></a> 
<a href="tour-modules.html"> <img src="arrow3.gif" alt="[Next]" align=bottom></a>
</center>


</body>
</html>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产精品区| 色噜噜久久综合| 男女男精品网站| 亚洲色图欧美在线| 国产精品毛片a∨一区二区三区| 日韩一级精品视频在线观看| 欧美午夜电影一区| 99久久99久久精品国产片果冻| 久久 天天综合| 综合激情网...| 一区二区三区在线免费观看| 亚洲综合精品久久| 亚洲成人黄色影院| 日韩在线一区二区| 狂野欧美性猛交blacked| 精品一区二区三区不卡| 国精产品一区一区三区mba视频| 九九久久精品视频| 成人免费av网站| 色94色欧美sute亚洲13| 在线一区二区三区| 91精品国产乱码| 欧美精品一区二区三区一线天视频| www国产精品av| 国产精品毛片久久久久久 | 亚洲精品中文字幕在线观看| 亚洲精品美国一| 日本欧美一区二区| 免费观看91视频大全| 国产精品69毛片高清亚洲| 99视频有精品| 欧美高清你懂得| 久久久夜色精品亚洲| 中文字幕一区三区| 偷拍一区二区三区四区| 久久91精品国产91久久小草| 91在线视频免费观看| 欧美精品国产精品| 久久看人人爽人人| 一区二区成人在线视频| 美女视频黄a大片欧美| 成人免费观看av| 欧美老肥妇做.爰bbww| 国产日韩av一区二区| 亚洲一区二区高清| 国产一区二区在线视频| 色综合久久中文综合久久牛| 日韩一区二区不卡| 亚洲男人电影天堂| 狠狠色丁香婷婷综合| 在线观看av不卡| 国产人妖乱国产精品人妖| 一卡二卡欧美日韩| 国产精品99久久久久久有的能看| 在线一区二区三区四区五区 | 国产精品久久久久影院亚瑟| 亚洲国产欧美一区二区三区丁香婷| 精品亚洲国产成人av制服丝袜| 91视频www| 久久久久久久久一| 日韩国产成人精品| 色老综合老女人久久久| 国产午夜精品一区二区| 日韩专区在线视频| 色婷婷综合久久| 欧美国产精品一区| 久久成人免费电影| 欧美日韩一区精品| 亚洲人亚洲人成电影网站色| 韩日av一区二区| 69av一区二区三区| 一区二区三区国产豹纹内裤在线 | 日韩女优av电影| 亚洲一区二区黄色| 91网上在线视频| 国产三级精品在线| 蜜臀久久99精品久久久久久9 | 一区二区三国产精华液| 成人午夜激情视频| 久久久久久免费| 狠狠色狠狠色综合日日91app| 欧美精品自拍偷拍动漫精品| 亚洲婷婷综合色高清在线| 国产一区二区三区综合| 日韩欧美色综合网站| 午夜精品久久久久久久久| 色偷偷成人一区二区三区91| 中文字幕制服丝袜一区二区三区| 国产大陆精品国产| 久久久久久一级片| 国模套图日韩精品一区二区| 日韩欧美国产一区二区在线播放| 亚洲成人免费视| 欧美日韩一区二区在线观看视频| 亚洲色图丝袜美腿| 91麻豆swag| 亚洲天堂久久久久久久| 成人激情综合网站| 国产欧美日韩综合| 国产91精品在线观看| 久久久国产精品不卡| 国产伦精品一区二区三区免费迷| 日韩一二三四区| 久久99日本精品| 久久综合资源网| 国产成人精品亚洲午夜麻豆| 久久人人97超碰com| 国产激情精品久久久第一区二区| 久久久精品tv| 成人18视频在线播放| 成人一区二区三区在线观看| 麻豆国产欧美日韩综合精品二区| 欧美一区二区三区四区在线观看| 日本亚洲视频在线| 日韩免费一区二区三区在线播放| 日本女优在线视频一区二区| 精品国产91乱码一区二区三区| 国内精品嫩模私拍在线| 中文字幕av一区二区三区高| 91麻豆福利精品推荐| 亚洲国产精品一区二区久久| 欧美日产在线观看| 久久精品国产亚洲a| 中文字幕国产一区| 欧美自拍偷拍一区| 乱中年女人伦av一区二区| 久久久久久久av麻豆果冻| 99久久综合色| 亚洲bdsm女犯bdsm网站| 精品久久久久av影院| 成人小视频免费在线观看| 亚洲黄色免费电影| 欧美一区二区三区免费视频| 国产精品一色哟哟哟| 亚洲靠逼com| 日韩精品综合一本久道在线视频| 国产美女精品人人做人人爽| 中文字幕亚洲欧美在线不卡| 欧美日韩国产高清一区二区三区| 精品一区二区三区不卡| 亚洲天堂久久久久久久| 日韩一区二区三区免费观看| 成人免费看视频| 日韩高清欧美激情| 欧美国产日本韩| 欧美日韩国产一级| 风间由美性色一区二区三区| 五月天网站亚洲| 国产网红主播福利一区二区| 欧美午夜精品一区二区蜜桃| 国产麻豆成人精品| 亚洲国产另类av| 国产精品视频一二三区| 欧美精品tushy高清| 国产suv精品一区二区三区| 亚洲一区在线观看免费 | 一区二区三区产品免费精品久久75| 91精品国产91综合久久蜜臀| 成人精品一区二区三区四区| 免费在线观看视频一区| 亚洲女人****多毛耸耸8| 26uuu精品一区二区在线观看| 色婷婷国产精品综合在线观看| 狠狠色丁香久久婷婷综| 五月天一区二区三区| 国产精品久久久久久久久果冻传媒 | 中文字幕亚洲视频| 欧美tk—视频vk| 欧美日韩久久久| 99热这里都是精品| 狠狠色丁香久久婷婷综合丁香| 亚洲午夜私人影院| 亚洲欧美在线aaa| 玉米视频成人免费看| 国产欧美日韩综合精品一区二区| 91精品国产乱| 欧美日韩情趣电影| 色婷婷综合久久久中文字幕| 国产成人自拍高清视频在线免费播放| 天天影视色香欲综合网老头| 亚洲码国产岛国毛片在线| 国产欧美日韩精品一区| 2023国产精品视频| 精品少妇一区二区三区在线播放 | 欧美激情资源网| 欧美精品一区二区久久婷婷| 欧美一区午夜精品| 欧美在线免费观看视频| 色偷偷88欧美精品久久久| 不卡欧美aaaaa| 国产91丝袜在线播放九色| 国产在线精品国自产拍免费| 裸体在线国模精品偷拍| 日韩电影免费在线| 日本欧美久久久久免费播放网| 亚洲国产精品久久人人爱蜜臀| 一二三区精品视频| 一区二区成人在线| 亚洲一卡二卡三卡四卡无卡久久 | 一本久久综合亚洲鲁鲁五月天 |