Changeset 07969d in git


Ignore:
Timestamp:
Jan 18, 2010, 2:18:20 PM (13 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
a01d50fc3b92a3003a532add6e1a65254adbd29e
Parents:
a0db9e2da8bb9de2698f9dc20fcd535934ff9b39
Message:
idChineseRemainder for matrices

git-svn-id: file:///usr/local/Singular/svn/trunk@12440 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    ra0db9e r07969d  
    40054005ideal idChineseRemainder(ideal *xx, number *q, int rl)
    40064006{
    4007   ideal result=idInit(IDELEMS(xx[0]),xx[0]->rank);
     4007  int cnt=IDELEMS(xx[0])*xx[0]->nrows;
     4008  ideal result=idInit(cnt,xx[0]->rank);
     4009  result->nrows=xx[0]->nrows; // for lifting matrices
     4010  result->ncols=xx[0]->ncols; // for lifting matrices
    40084011  int i,j;
    40094012  poly r,h,hh,res_p;
    40104013  number *x=(number *)omAlloc(rl*sizeof(number));
    4011   for(i=IDELEMS(result)-1;i>=0;i--)
     4014  for(i=cnt-1;i>=0;i--)
    40124015  {
    40134016    res_p=NULL;
Note: See TracChangeset for help on using the changeset viewer.