Changeset a660bb2 in git for kernel


Ignore:
Timestamp:
Jan 22, 2016, 5:40:50 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
01f6271e1cfb6a7db18909a25eefab7cd08cc713
Parents:
b64a5f131f1c498bfaf3b8d81c7a062ed7ef5c7f
Message:
opt maps: use maMapIdeal also for module/matrix/map
Location:
kernel/maps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/maps/find_perm.cc

    rb64a5f1 ra660bb2  
    8585    }
    8686  }
     87  ideal ii=(ideal)m;
     88  ii->rank=((ideal)to_map)->rank;
    8789  omFreeSize(perm,(preimage_r->N+1)*sizeof(int));
    8890  return m;
  • kernel/maps/gen_maps.cc

    rb64a5f1 ra660bb2  
    111111    // ----------------------------------------------------------
    112112    // long polys in the image ?: possiblity of many common subexpressions
    113     if (nMap==ndCopyMap) /* and !rIsPluralRing(image_r) */
     113    if ((nMap==ndCopyMap) /* and !rIsPluralRing(image_r) */
     114    && (map_id->nrows==1) /* i.e. only for ideal/map */
     115    && (map_id->rank==1))
    114116    {
    115117      int sz=IDELEMS(map_id);
     
    137139  if (TEST_OPT_PROT) PrintS("map with cache\n");
    138140  int C=((matrix)map_id)->cols();
    139   int R=1; //((matrix)map_id)->rows();
     141  int R=((matrix)map_id)->rows();
    140142  matrix m=mpNew(R,C);
    141143  int N = preimage_r->N;
     
    151153  }
    152154  idDelete((ideal *)&cache);
     155  ideal ii=(ideal)m;
     156  ii->rank=((ideal)map_id)->rank;
    153157  return (ideal)m;
    154158}
Note: See TracChangeset for help on using the changeset viewer.