Changeset 0d5959c in git


Ignore:
Timestamp:
Mar 7, 2018, 4:13:40 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
Children:
59b9fdb6e4914ed681cc7907561abf9361bae474
Parents:
b28bf25e51ba900b4e571231a6508fa28f691ed2
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2018-03-07 16:13:40+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2018-03-07 16:44:34+01:00
Message:
add: id_Array2Vector
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/simpleideals.cc

    rb28bf25 r0d5959c  
    11421142}
    11431143
    1144 
    1145 // converts mat to module, destroys mat
     1144/// for julia: convert an array of poly to vector
     1145poly id_Array2Vector(poly *m, unsigned n, const ring R)
     1146{
     1147  poly h;
     1148  int l;
     1149  sBucket_pt bucket = sBucketCreate(R);
     1150
     1151  for(unsigned j=0;j<n ;j++)
     1152  {
     1153    h = m[j];
     1154    if (h!=NULL)
     1155    {
     1156      h=p_Copy(h, R);
     1157      l=pLength(h);
     1158      p_SetCompP(h,j+1, R);
     1159      sBucket_Merge_p(bucket, h, l);
     1160    }
     1161  }
     1162  sBucketClearMerge(bucket, &h, &l);
     1163  sBucketDestroy(&bucket);
     1164  return h;
     1165}
     1166
     1167/// converts mat to module, destroys mat
    11461168ideal id_Matrix2Module(matrix mat, const ring R)
    11471169{
  • libpolys/polys/simpleideals.h

    rb28bf25 r0d5959c  
    169169void id_Shift(ideal M, int s, const ring r);
    170170ideal id_Delete_Pos(const ideal I, const int pos, const ring r);
     171
     172/// for julia: convert an array of poly to vector
     173poly id_Array2Vector(poly *m, unsigned n, const ring R);
    171174#endif
Note: See TracChangeset for help on using the changeset viewer.