Changeset cb4700 in git


Ignore:
Timestamp:
Jan 31, 2024, 4:59:43 PM (3 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a410042175ed269bc5f88a7a1239e49c4c28b706
Parents:
687d0d05ffa27de4df1418fdc38be90ed25c8aac
Message:
opt: idSkipZeroes, add: id_Jet0
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/simpleideals.cc

    r687d0d rcb4700  
    216216      {
    217217        ide->m[j] = ide->m[k];
     218        ide->m[k] = NULL;
    218219      }
    219220    }
     
    227228    if (j == -1)
    228229      j = 0;
    229     else
    230     {
    231       for (k=j+1; k<idelems; k++)
    232         ide->m[k] = NULL;
    233     }
    234230    j++;
    235231    pEnlargeSet(&(ide->m),idelems,j-idelems);
     
    238234}
    239235
    240 int idSkipZeroes0 (ideal ide)
     236int idSkipZeroes0 (ideal ide) /*idSkipZeroes without realloc*/
    241237{
    242238  assume (ide != NULL);
     
    17861782}
    17871783
     1784ideal id_Jet0(const ideal i, const ring R)
     1785{
     1786  ideal r=idInit((i->nrows)*(i->ncols),i->rank);
     1787  r->nrows = i-> nrows;
     1788  r->ncols = i-> ncols;
     1789  //r->rank = i-> rank;
     1790
     1791  for(long k=((long)(i->nrows))*((long)(i->ncols))-1;k>=0; k--)
     1792    r->m[k]=pp_Jet0(i->m[k],R);
     1793
     1794  return r;
     1795}
     1796
    17881797ideal id_JetW(const ideal i,int d, intvec * iv, const ring R)
    17891798{
  • libpolys/polys/simpleideals.h

    r687d0d rcb4700  
    139139BOOLEAN id_IsZeroDim(ideal I, const ring r);
    140140ideal id_Jet(const ideal i,int d, const ring R);
     141ideal id_Jet0(const ideal i, const ring R);/*id_Jet(i,0,R)*/
    141142ideal id_JetW(const ideal i,int d, intvec * iv, const ring R);
    142143ideal  id_Subst(ideal id, int n, poly e, const ring r);
Note: See TracChangeset for help on using the changeset viewer.