Changeset a9a7be in git for Singular/mpsr_PutPoly.cc
- Timestamp:
- Sep 27, 1999, 5:05:35 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 7c19609b3106a80912e66f6ac4fa0fa446532b1f
- Parents:
- 7d423ecfe560c226d3e99aed883841c463e884ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpsr_PutPoly.cc
r7d423e ra9a7be 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_PutPoly.cc,v 1.1 5 1999-03-12 12:05:24 SingularExp $ */5 /* $Id: mpsr_PutPoly.cc,v 1.16 1999-09-27 15:05:28 obachman Exp $ */ 6 6 7 7 /*************************************************************** … … 13 13 * Change History (most recent first): 14 14 * o 1/97 obachman 15 * Updated routines to MP and MPP v1.1 15 * Updated routines to MP and MPP v1.1 16 16 * 17 17 ***************************************************************/ … … 26 26 #include "ring.h" 27 27 #include "polys.h" 28 #include "ipid.h"28 //#include "ipid.h" 29 29 30 30 #ifdef PARI_BIGINT_TEST … … 144 144 if (a == NULL) 145 145 mp_return( MP_PutSint32Packet(link, 0, 0)); 146 146 147 147 // check for SR_INT type 148 148 if (SR_HDL(a) & SR_INT) … … 160 160 // return PutRationalNumber(link, a); 161 161 // } 162 162 163 163 // send number itself 164 164 mp_failr(MP_PutCommonOperatorPacket(link, … … 259 259 pTest(p); 260 260 #endif 261 261 262 262 if (gNvars > 1) 263 263 { 264 264 short i; 265 265 MP_Sint32_t *ta1 = &(gTa[1]); 266 266 267 267 while (p != NULL) 268 268 { … … 290 290 if (cring != CurrPutRing) 291 291 SetPutFuncs(cring); 292 292 293 293 if (gNvars > 1) 294 294 { … … 348 348 if (r->minpoly != NULL && r->parameter == NULL && r->ch > 0) 349 349 failr(PutMinPolyAnnot(link,r)); 350 350 351 351 if (r->qideal != NULL) 352 352 return PutDefRelsAnnot(link, r); … … 358 358 BOOLEAN mv) 359 359 { 360 // each element of the poly is a 360 // each element of the poly is a 361 361 mp_failr(MP_PutAnnotationPacket(link, 362 362 MP_ProtoDict, … … 392 392 MP_CmtProtoIMP_Uint32, 393 393 1)); 394 // but are taken as modulo numbers 394 // but are taken as modulo numbers 395 395 mp_failr(MP_PutAnnotationPacket(link, 396 396 MP_NumberDict, … … 418 418 else if (rField_is_R(r)) 419 419 { 420 // floats 420 // floats 421 421 mp_failr(MP_PutCommonMetaTypePacket(link, 422 422 MP_ProtoDict, … … 439 439 alg_r->minpoly = r->minpoly; 440 440 441 // Algebraic numbers are 441 // Algebraic numbers are 442 442 // a fraction of two Dense Dist Polys 443 443 mp_failr(MP_PutCommonMetaOperatorPacket(link, … … 478 478 } 479 479 480 480 481 481 static mpsr_Status_t PutVarNamesAnnot(MP_Link_pt link, ring r) 482 482 { … … 507 507 MP_AnnotProtoPrototype, 508 508 MP_AnnotReqValNode)); 509 509 510 510 mp_failr(MP_PutCommonMetaTypePacket(link, 511 511 MP_ProtoDict, … … 528 528 } 529 529 530 530 531 531 static mpsr_Status_t PutOrderingAnnot(MP_Link_pt link, ring r, BOOLEAN mv) 532 532 { … … 566 566 order[index] == ringorder_c))) 567 567 { 568 // a product ordering is sent as triple 568 // a product ordering is sent as triple 569 569 mp_failr(MP_PutCommonOperatorPacket(link, 570 570 MP_BasicDict, … … 598 598 if (vlength == 0) return mpsr_Success; 599 599 600 // deal with the weights 600 // deal with the weights 601 601 mp_failr(MP_PutAnnotationPacket(link, 602 602 MP_PolyDict, … … 649 649 } 650 650 651 // weights are all what remains 651 // weights are all what remains 652 652 for (i=0; i<vlength; i++) 653 653 mp_failr(IMP_PutSint32(link, (MP_Sint32_t) r->wvhdl[index][i])); … … 659 659 { 660 660 mpsr_assume(r->minpoly != NULL && r->ch > 0 && r->parameter == NULL); 661 661 662 662 number minpoly = r->minpoly; 663 663 r->minpoly = 0; … … 688 688 PutAlgAlgNumber = PutRationalNumber; 689 689 gNalgvars = r->N; 690 690 691 691 r->minpoly = minpoly; 692 692 return PutAlgPoly(link, ((lnumber) minpoly)->z); 693 693 } 694 694 695 695 696 696 static mpsr_Status_t PutDefRelsAnnot(MP_Link_pt link, ring r) 697 697 {
Note: See TracChangeset
for help on using the changeset viewer.