Changeset 8da499 in git


Ignore:
Timestamp:
Dec 2, 2010, 5:40:08 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Message:
code cleanup: pPolys2Vec
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/polys.h

    r6438a12 r8da499  
    330330
    331331/*-----------type conversions ----------------------------*/
    332 //poly  pPolys2Vec(polyset p, int len);
    333332void  pVec2Polys(poly v, polyset *p, int *len);
    334333int   p_Var(poly mi,const ring r);
  • libpolys/polys/polys1.cc

    r6438a12 r8da499  
    264264#if 0
    265265/*2
    266 * input: a set of polys (len elements: p[0]..p[len-1])
    267 * output: a vector
    268 * p will not be changed
    269 */
    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 #endif
    288 
    289 /*2
    290266* convert a vector to a set of polys,
    291267* allocates the polyset, (entries 0..(*len)-1)
Note: See TracChangeset for help on using the changeset viewer.