Changeset 8da499 in git
- Timestamp:
- Dec 2, 2010, 5:40:08 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- ac36d8c3b4d82b8ff4d037c36469cbaf201e8aa3
- Parents:
- 6438a1226731efcf53d1aec6ebbeb53026ff087b
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-12-02 17:40:08+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:57:47+01:00
- Location:
- libpolys/polys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/polys.h
r6438a12 r8da499 330 330 331 331 /*-----------type conversions ----------------------------*/ 332 //poly pPolys2Vec(polyset p, int len);333 332 void pVec2Polys(poly v, polyset *p, int *len); 334 333 int p_Var(poly mi,const ring r); -
libpolys/polys/polys1.cc
r6438a12 r8da499 264 264 #if 0 265 265 /*2 266 * input: a set of polys (len elements: p[0]..p[len-1])267 * output: a vector268 * p will not be changed269 */270 poly pPolys2Vec(polyset p, int len)271 {272 poly v=NULL;273 poly h;274 int i;275 276 for (i=len-1; i>=0; i--)277 {278 if (p[i])279 {280 h=pCopy(p[i]);281 pSetCompP(h,i+1);282 v=pAdd(v,h);283 }284 }285 return v;286 }287 #endif288 289 /*2290 266 * convert a vector to a set of polys, 291 267 * allocates the polyset, (entries 0..(*len)-1)
Note: See TracChangeset
for help on using the changeset viewer.