Changeset f13c85 in git for Singular/ipshell.cc


Ignore:
Timestamp:
May 28, 2015, 2:12:00 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
75fdcae64006ce0ba10e3d881e761f661f4fc9ea
Parents:
9750e3ed7db2557ee2bc1ca59771e04ecff78d78
Message:
format, cleanup, def. of map/sip_map at one place, ....
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r9750e3 rf13c85  
    6868#include <math.h>
    6969#include <ctype.h>
    70 #include <algorithm>
    7170
    7271// define this if you want to use the fast_map routine for mapping ideals
     
    782781        {
    783782          v->rtyp=IDEAL_CMD;
    784          
    785           char *tmp = (char*)1;
    786           std::swap(tmp, theMap->preimage); // map gets 1 as its rank (as an ideal)
    787           v->data=fast_map(IDIDEAL(w), src_ring, (ideal)theMap, currRing); // FIXME: this dirty hack from original Singular!
    788           std::swap(tmp, theMap->preimage); // map gets its preimage back
    789           assume( tmp == (char*)1 );
    790          
     783          char *tmp = theMap->preimage;
     784          theMap->preimage=(char*)1L;
     785          // map gets 1 as its rank (as an ideal)
     786          v->data=fast_map(IDIDEAL(w), src_ring, (ideal)theMap, currRing);
     787          theMap->preimage=tmp; // map gets its preimage back
    791788        }
    792789        else
Note: See TracChangeset for help on using the changeset viewer.