00001 template<typename T>
00002 void egal1(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00003 {
00004 *tabcoeff=p->nf[(*compt)++];
00005 }
00006 template<typename T>
00007 void egal2(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00008 {
00009 tabcoeff[1]=p->nf[(*compt)++];
00010 }
00011 template<typename T>
00012 void egal3(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00013 {
00014 *tabcoeff=p->nf[(*compt)++];
00015 tabcoeff[1]=p->nf[(*compt)++];
00016 }
00017 template<typename T>
00018 void egal4(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00019 {
00020 tabcoeff[2]=p->nf[(*compt)++];
00021 }
00022 template<typename T>
00023 void egal5(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00024 {
00025 *tabcoeff=p->nf[(*compt)++];
00026 tabcoeff[2]=p->nf[(*compt)++];
00027 }
00028 template<typename T>
00029 void egal6(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00030 {
00031 tabcoeff[1]=p->nf[(*compt)++];
00032 tabcoeff[2]=p->nf[(*compt)++];
00033 }
00034 template<typename T>
00035 void egal7(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00036 {
00037 *tabcoeff=p->nf[(*compt)++];
00038 tabcoeff[1]=p->nf[(*compt)++];
00039 tabcoeff[2]=p->nf[(*compt)++];
00040 }
00041 template<typename T>
00042 void egal8(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00043 {
00044 tabcoeff[3]=p->nf[(*compt)++];
00045 }
00046 template<typename T>
00047 void egal9(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00048 {
00049 *tabcoeff=p->nf[(*compt)++];
00050 tabcoeff[3]=p->nf[(*compt)++];
00051 }
00052 template<typename T>
00053 void egal10(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00054 {
00055 tabcoeff[1]=p->nf[(*compt)++];
00056 tabcoeff[3]=p->nf[(*compt)++];
00057 }
00058 template<typename T>
00059 void egal11(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00060 {
00061 *tabcoeff=p->nf[(*compt)++];
00062 tabcoeff[1]=p->nf[(*compt)++];
00063 tabcoeff[3]=p->nf[(*compt)++];
00064 }
00065 template<typename T>
00066 void egal12(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00067 {
00068 tabcoeff[2]=p->nf[(*compt)++];
00069 tabcoeff[3]=p->nf[(*compt)++];
00070 }
00071 template<typename T>
00072 void egal13(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00073 {
00074 *tabcoeff=p->nf[(*compt)++];
00075 tabcoeff[2]=p->nf[(*compt)++];
00076 tabcoeff[3]=p->nf[(*compt)++];
00077 }
00078 template<typename T>
00079 void egal14(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00080 {
00081 tabcoeff[1]=p->nf[(*compt)++];
00082 tabcoeff[2]=p->nf[(*compt)++];
00083 tabcoeff[3]=p->nf[(*compt)++];
00084 }
00085 template<typename T>
00086 void egal15(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00087 {
00088 *tabcoeff=p->nf[(*compt)++];
00089 tabcoeff[1]=p->nf[(*compt)++];
00090 tabcoeff[2]=p->nf[(*compt)++];
00091 tabcoeff[3]=p->nf[(*compt)++];
00092 }
00093 template<typename T>
00094 void egal16(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00095 {
00096 tabcoeff[4]=p->nf[(*compt)++];
00097 }
00098 template<typename T>
00099 void egal17(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00100 {
00101 *tabcoeff=p->nf[(*compt)++];
00102 tabcoeff[4]=p->nf[(*compt)++];
00103 }
00104 template<typename T>
00105 void egal18(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00106 {
00107 tabcoeff[1]=p->nf[(*compt)++];
00108 tabcoeff[4]=p->nf[(*compt)++];
00109 }
00110 template<typename T>
00111 void egal19(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00112 {
00113 *tabcoeff=p->nf[(*compt)++];
00114 tabcoeff[1]=p->nf[(*compt)++];
00115 tabcoeff[4]=p->nf[(*compt)++];
00116 }
00117 template<typename T>
00118 void egal20(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00119 {
00120 tabcoeff[2]=p->nf[(*compt)++];
00121 tabcoeff[4]=p->nf[(*compt)++];
00122 }
00123 template<typename T>
00124 void egal21(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00125 {
00126 *tabcoeff=p->nf[(*compt)++];
00127 tabcoeff[2]=p->nf[(*compt)++];
00128 tabcoeff[4]=p->nf[(*compt)++];
00129 }
00130 template<typename T>
00131 void egal22(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00132 {
00133 tabcoeff[1]=p->nf[(*compt)++];
00134 tabcoeff[2]=p->nf[(*compt)++];
00135 tabcoeff[4]=p->nf[(*compt)++];
00136 }
00137 template<typename T>
00138 void egal23(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00139 {
00140 *tabcoeff=p->nf[(*compt)++];
00141 tabcoeff[1]=p->nf[(*compt)++];
00142 tabcoeff[2]=p->nf[(*compt)++];
00143 tabcoeff[4]=p->nf[(*compt)++];
00144 }
00145 template<typename T>
00146 void egal24(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00147 {
00148 tabcoeff[3]=p->nf[(*compt)++];
00149 tabcoeff[4]=p->nf[(*compt)++];
00150 }
00151 template<typename T>
00152 void egal25(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00153 {
00154 *tabcoeff=p->nf[(*compt)++];
00155 tabcoeff[3]=p->nf[(*compt)++];
00156 tabcoeff[4]=p->nf[(*compt)++];
00157 }
00158 template<typename T>
00159 void egal26(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00160 {
00161 tabcoeff[1]=p->nf[(*compt)++];
00162 tabcoeff[3]=p->nf[(*compt)++];
00163 tabcoeff[4]=p->nf[(*compt)++];
00164 }
00165 template<typename T>
00166 void egal27(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00167 {
00168 *tabcoeff=p->nf[(*compt)++];
00169 tabcoeff[1]=p->nf[(*compt)++];
00170 tabcoeff[3]=p->nf[(*compt)++];
00171 tabcoeff[4]=p->nf[(*compt)++];
00172 }
00173 template<typename T>
00174 void egal28(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00175 {
00176 tabcoeff[2]=p->nf[(*compt)++];
00177 tabcoeff[3]=p->nf[(*compt)++];
00178 tabcoeff[4]=p->nf[(*compt)++];
00179 }
00180 template<typename T>
00181 void egal29(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00182 {
00183 *tabcoeff=p->nf[(*compt)++];
00184 tabcoeff[2]=p->nf[(*compt)++];
00185 tabcoeff[3]=p->nf[(*compt)++];
00186 tabcoeff[4]=p->nf[(*compt)++];
00187 }
00188 template<typename T>
00189 void egal30(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00190 {
00191 tabcoeff[1]=p->nf[(*compt)++];
00192 tabcoeff[2]=p->nf[(*compt)++];
00193 tabcoeff[3]=p->nf[(*compt)++];
00194 tabcoeff[4]=p->nf[(*compt)++];
00195 }
00196 template<typename T>
00197 void egal31(COEFF * tabcoeff, pol<mon,T> *p, int *compt)
00198 {
00199 *tabcoeff=p->nf[(*compt)++];
00200 tabcoeff[1]=p->nf[(*compt)++];
00201 tabcoeff[2]=p->nf[(*compt)++];
00202 tabcoeff[3]=p->nf[(*compt)++];
00203 tabcoeff[4]=p->nf[(*compt)++];
00204 }
00205
00206
00207
00208
00209
00210
00211
00212 template<typename T>
00213 void moinsegal1(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00214 {
00215 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00216 }
00217 template<typename T>
00218 void moinsegal2(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00219 {
00220 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00221 }
00222 template<typename T>
00223 void moinsegal3(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00224 {
00225 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00226 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00227 }
00228 template<typename T>
00229 void moinsegal4(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00230 {
00231 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00232 }
00233 template<typename T>
00234 void moinsegal5(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00235 {
00236 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00237 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00238 }
00239 template<typename T>
00240 void moinsegal6(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00241 {
00242 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00243 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00244 }
00245 template<typename T>
00246 void moinsegal7(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00247 {
00248 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00249 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00250 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00251 }
00252 template<typename T>
00253 void moinsegal8(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00254 {
00255 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00256 }
00257 template<typename T>
00258 void moinsegal9(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00259 {
00260 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00261 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00262 }
00263 template<typename T>
00264 void moinsegal10(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00265 {
00266 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00267 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00268 }
00269 template<typename T>
00270 void moinsegal11(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00271 {
00272 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00273 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00274 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00275 }
00276 template<typename T>
00277 void moinsegal12(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00278 {
00279 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00280 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00281 }
00282 template<typename T>
00283 void moinsegal13(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00284 {
00285 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00286 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00287 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00288 }
00289 template<typename T>
00290 void moinsegal14(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00291 {
00292 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00293 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00294 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00295 }
00296 template<typename T>
00297 void moinsegal15(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00298 {
00299 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00300 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00301 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00302 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00303 }
00304 template<typename T>
00305 void moinsegal16(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00306 {
00307 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00308 }
00309 template<typename T>
00310 void moinsegal17(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00311 {
00312 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00313 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00314 }
00315 template<typename T>
00316 void moinsegal18(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00317 {
00318 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00319 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00320 }
00321 template<typename T>
00322 void moinsegal19(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00323 {
00324 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00325 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00326 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00327 }
00328 template<typename T>
00329 void moinsegal20(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00330 {
00331 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00332 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00333 }
00334 template<typename T>
00335 void moinsegal21(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00336 {
00337 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00338 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00339 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00340 }
00341 template<typename T>
00342 void moinsegal22(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00343 {
00344 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00345 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00346 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00347 }
00348 template<typename T>
00349 void moinsegal23(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00350 {
00351 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00352 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00353 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00354 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00355 }
00356 template<typename T>
00357 void moinsegal24(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00358 {
00359 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00360 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00361 }
00362 template<typename T>
00363 void moinsegal25(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00364 {
00365 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00366 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00367 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00368 }
00369 template<typename T>
00370 void moinsegal26(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00371 {
00372 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00373 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00374 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00375 }
00376 template<typename T>
00377 void moinsegal27(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00378 {
00379 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00380 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00381 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00382 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00383 }
00384 template<typename T>
00385 void moinsegal28(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00386 {
00387 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00388 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00389 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00390 }
00391 template<typename T>
00392 void moinsegal29(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00393 {
00394 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00395 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00396 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00397 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00398 }
00399 template<typename T>
00400 void moinsegal30(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00401 {
00402 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00403 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00404 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00405 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00406 }
00407 template<typename T>
00408 void moinsegal31(COEFF * tabcoeff, COEFF *tmpcoeff, pol<mon,T> *p, int *compt)
00409 {
00410 *tabcoeff-=*tmpcoeff*p->nf[(*compt)++];
00411 tabcoeff[1]-=*tmpcoeff*p->nf[(*compt)++];
00412 tabcoeff[2]-=*tmpcoeff*p->nf[(*compt)++];
00413 tabcoeff[3]-=*tmpcoeff*p->nf[(*compt)++];
00414 tabcoeff[4]-=*tmpcoeff*p->nf[(*compt)++];
00415 }
00416
00417 void (*tabfun1[32])(COEFF *, pol<mon,COEFF> *, int *);
00418 void (*tabfun2[32])(COEFF *, COEFF*, pol<mon,COEFF> *, int *);
00419
00420 template <typename T>
00421 void init_pointer()
00422 {
00423 tabfun1[1]=egal1;
00424 tabfun1[2]=egal2;
00425 tabfun1[3]=egal3;
00426 tabfun1[4]=egal4;
00427 tabfun1[5]=egal5;
00428 tabfun1[6]=egal6;
00429 tabfun1[7]=egal7;
00430 tabfun1[8]=egal8;
00431 tabfun1[9]=egal9;
00432 tabfun1[10]=egal10;
00433 tabfun1[11]=egal11;
00434 tabfun1[12]=egal12;
00435 tabfun1[13]=egal13;
00436 tabfun1[14]=egal14;
00437 tabfun1[15]=egal15;
00438 tabfun1[16]=egal16;
00439 tabfun1[17]=egal17;
00440 tabfun1[18]=egal18;
00441 tabfun1[19]=egal19;
00442 tabfun1[20]=egal20;
00443 tabfun1[21]=egal21;
00444 tabfun1[22]=egal22;
00445 tabfun1[23]=egal23;
00446 tabfun1[24]=egal24;
00447 tabfun1[25]=egal25;
00448 tabfun1[26]=egal26;
00449 tabfun1[27]=egal27;
00450 tabfun1[28]=egal28;
00451 tabfun1[29]=egal29;
00452 tabfun1[30]=egal30;
00453 tabfun1[31]=egal31;
00454
00455 tabfun2[1]=moinsegal1;
00456 tabfun2[2]=moinsegal2;
00457 tabfun2[3]=moinsegal3;
00458 tabfun2[4]=moinsegal4;
00459 tabfun2[5]=moinsegal5;
00460 tabfun2[6]=moinsegal6;
00461 tabfun2[7]=moinsegal7;
00462 tabfun2[8]=moinsegal8;
00463 tabfun2[9]=moinsegal9;
00464 tabfun2[10]=moinsegal10;
00465 tabfun2[11]=moinsegal11;
00466 tabfun2[12]=moinsegal12;
00467 tabfun2[13]=moinsegal13;
00468 tabfun2[14]=moinsegal14;
00469 tabfun2[15]=moinsegal15;
00470 tabfun2[16]=moinsegal16;
00471 tabfun2[17]=moinsegal17;
00472 tabfun2[18]=moinsegal18;
00473 tabfun2[19]=moinsegal19;
00474 tabfun2[20]=moinsegal20;
00475 tabfun2[21]=moinsegal21;
00476 tabfun2[22]=moinsegal22;
00477 tabfun2[23]=moinsegal23;
00478 tabfun2[24]=moinsegal24;
00479 tabfun2[25]=moinsegal25;
00480 tabfun2[26]=moinsegal26;
00481 tabfun2[27]=moinsegal27;
00482 tabfun2[28]=moinsegal28;
00483 tabfun2[29]=moinsegal29;
00484 tabfun2[30]=moinsegal30;
00485 tabfun2[31]=moinsegal31;
00486
00487 }
00488