Changeset 239d73 in git
- Timestamp:
- Mar 15, 2018, 1:26:07 PM (5 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 4dda3ed2d0a4ac4c52db5cbb2f1b77b888dc7ef2
- Parents:
- 59b9fdb6e4914ed681cc7907561abf9361bae474
- Location:
- libpolys/polys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r59b9fdb r239d73 3538 3538 k=__p_GetComp(h,r); 3539 3539 p_SetComp(h,0,r); 3540 (*p)[k-1]=p_Add_q((*p)[k-1],h,r);3540 pNext(h)=(*p)[k-1];(*p)[k-1]=h; 3541 3541 pIter(v); 3542 } 3543 for(int i=(*len-1);i>=0;i--) 3544 { 3545 if ((*p)[i]!=NULL) (*p)[i]=pReverse((*p)[i]); 3546 } 3547 } 3548 3549 /// julia: vector to already allocated array (len=p_MaxComp(v,r)) 3550 void p_Vec2Array(poly v, poly *p, int len, const ring r) 3551 { 3552 poly h; 3553 int k; 3554 3555 while (v!=NULL) 3556 { 3557 h=p_Head(v,r); 3558 k=__p_GetComp(h,r); 3559 p_SetComp(h,0,r); 3560 pNext(h)=p[k-1];p[k-1]=h; 3561 pIter(v); 3562 } 3563 for(int i=len-1;i>=0;i--) 3564 { 3565 if (p[i]!=NULL) p[i]=pReverse(p[i]); 3542 3566 } 3543 3567 } -
libpolys/polys/monomials/p_polys.h
r59b9fdb r239d73 97 97 98 98 void p_Vec2Polys(poly v, poly**p, int *len, const ring r); 99 100 /// julia: vector to already allocated array (len=p_MaxComp(v,r)) 101 void p_Vec2Array(poly v, poly *p, int len, const ring r); 99 102 100 103 /*************************************************************** -
libpolys/polys/simpleideals.cc
r59b9fdb r239d73 1137 1137 ideal result=idInit(1,1); 1138 1138 omFree((ADDRESS)result->m); 1139 result->m=NULL; // remove later1140 1139 p_Vec2Polys(vec, &(result->m), &(IDELEMS(result)),R); 1141 1140 return result;
Note: See TracChangeset
for help on using the changeset viewer.