Changeset 5c71ae1 in git
- Timestamp:
- Sep 9, 2011, 1:07:41 PM (12 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- 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
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/maps_ip.cc
rf9dc437 r5c71ae1 8 8 9 9 #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> 10 25 11 26 #include "maps_ip.h" 12 27 #include "ipid.h" 13 28 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>29 29 30 30 #include "lists.h" 31 31 #include "tok.h" 32 33 /* debug output: Tok2Cmdname in maApplyFetch*/ 34 //#include "ipshell.h" 32 35 33 36 // define this if you want to use the fast_map routine for mapping ideals … … 103 106 { 104 107 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); 106 109 idDelete((ideal *)&s); 107 110 } … … 149 152 for (i=R*C-1;i>=0;i--) 150 153 { 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); 152 155 pTest(m->m[i]); 153 156 } -
libpolys/polys/monomials/maps.cc
rf9dc437 r5c71ae1 26 26 // This is a very dirty way to "normalize" numbers w.r.t. a 27 27 // MinPoly 28 29 /* debug output: Tok2Cmdname in maApplyFetch*/30 //#include "ipshell.h"31 28 32 29 #define MAX_MAP_DEG 128 -
libpolys/polys/monomials/maps.h
rf9dc437 r5c71ae1 16 16 typedef struct sip_smap * map; 17 17 18 poly maEval(map theMap, poly p, ring dst_ring, nMapFunc nMap, ideal s=NULL); 18 // poly maEval(map theMap, poly p, ring dst_ring, nMapFunc nMap, ideal s=NULL); 19 poly maEval(map theMap, poly p,ring preimage_r,nMapFunc nMap, ideal s, const ring dst_r); 20 19 21 map maCopy(map theMap, const ring dst_ring); 20 22 21 23 poly maIMap(ring src_ring, ring dst_ring, poly p); 22 24 23 /*24 BOOLEAN maApplyFetch(int what,map theMap,leftv res, leftv w,25 ring preimage_r, int *perm,26 int *par_perm,int P, nMapFunc nMap);27 */28 25 void maFindPerm(char **preim_names, int preim_n, char **preim_par, int preim_p, 29 26 char **names, int n, char **par, int nop,
Note: See TracChangeset
for help on using the changeset viewer.