Changeset 5c71ae1 in git for Singular/maps_ip.cc


Ignore:
Timestamp:
Sep 9, 2011, 1:07:41 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9d5ba2ee7540ee4eb709cfef410629f44c00e75b
Parents:
f9dc437c7c53a9f0de7781af406334375bb16f36
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-09 13:07:41+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:38+01:00
Message:
FIX: maEval takes the destination ring
CHG: minor cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/maps_ip.cc

    rf9dc437 r5c71ae1  
    88
    99#include <kernel/mod2.h>
     10#include <omalloc/omalloc.h>
     11
     12#include <coeffs/numbers.h>
     13#include <coeffs/coeffs.h>
     14
     15#include <polys/monomials/ring.h>
     16#include <polys/monomials/maps.h>
     17#include <polys/matpol.h>
     18#include <polys/prCopy.h>
     19
     20//#include <libpolys/polys/ext_fields/longtrans.h>
     21// #include <kernel/longalg.h>
     22
     23#include <kernel/febase.h>
     24#include <kernel/kstd1.h>
    1025
    1126#include "maps_ip.h"
    1227#include "ipid.h"
    1328
    14 #include <omalloc/omalloc.h>
    15 
    16 #include <coeffs/numbers.h>
    17 #include <polys/monomials/ring.h>
    18 // #include <polys/monomials/maps.h>
    19 #include <polys/matpol.h>
    20 #include <polys/prCopy.h>
    21 //#include <libpolys/polys/ext_fields/longtrans.h>
    22 #include <libpolys/polys/monomials/maps.h>
    23 #include <libpolys/coeffs/coeffs.h>
    24 
    25 // #include <kernel/longalg.h>
    26 
    27 #include <kernel/febase.h>
    28 #include <kernel/kstd1.h>
    2929
    3030#include "lists.h"
    3131#include "tok.h"
     32
     33/* debug output: Tok2Cmdname in maApplyFetch*/
     34//#include "ipshell.h"
    3235
    3336// define this if you want to use the fast_map routine for mapping ideals
     
    103106      {
    104107        matrix s=mpNew(N,maMaxDeg_P((poly)data, preimage_r));
    105         res->data=(void *)maEval(theMap,(poly)data,preimage_r,nMap,(ideal)s);
     108        res->data=(void *)maEval(theMap, (poly)data, preimage_r, nMap, (ideal)s, currRing);
    106109        idDelete((ideal *)&s);
    107110      }
     
    149152        for (i=R*C-1;i>=0;i--)
    150153        {
    151           m->m[i]=maEval(theMap,((ideal)data)->m[i],preimage_r,nMap,(ideal)s);
     154          m->m[i]=maEval(theMap, ((ideal)data)->m[i], preimage_r, nMap, (ideal)s, currRing);
    152155          pTest(m->m[i]);
    153156        }
Note: See TracChangeset for help on using the changeset viewer.