Changeset 754c547 in git for Singular/extra.cc


Ignore:
Timestamp:
Jan 19, 2002, 3:48:19 PM (22 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
e2b5115836f34facc584c5055707ef3f2f428830
Parents:
865fbfc3404627ab39e23c40394104d68cd687ae
Message:
fixed maMonomoial_Insert


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r865fbf r754c547  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.171 2001-11-13 14:22:26 Singular Exp $ */
     4/* $Id: extra.cc,v 1.172 2002-01-19 14:48:14 obachman Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    641641
    642642
    643 
    644643#ifdef HAVE_EXTENDED_SYSTEM
    645644// You can put your own system calls here
     
    652651
    653652#include "mod_raw.h"
    654 
     653#include "fast_maps.cc"
     654   
    655655static BOOLEAN jjEXTENDED_SYSTEM(leftv res, leftv h)
    656656{
     
    662662    if(strcmp(sys_cmd,"locNF")==0)
    663663    {
     664#if 0
    664665      if (h != NULL && h->Typ() == VECTOR_CMD)
    665666      {
     
    754755      }
    755756      return FALSE;
     757#endif
    756758    }
    757759    else
     
    778780    {
    779781      rDebugPrint((ring)h->Data());
     782      return FALSE;
     783    }
     784    else
     785/*==================== ring debug ==================================*/
     786    if(strcmp(sys_cmd,"map")==0)
     787    {
     788      ring image_r = currRing;
     789      map theMap = (map)h->Data();
     790      ideal image_id = (ideal) theMap;
     791      ring map_r = IDRING(idroot->get(theMap->preimage, myynest));
     792      ideal map_id = IDIDEAL(map_r->idroot->get(h->Next()->Name(), myynest));
     793
     794      ring src_r, dest_r;
     795      maMap_CreateRings(map_id, map_r, image_id, image_r, src_r, dest_r);
     796      mapoly mp;
     797      maideal mideal;
     798         
     799      maMap_CreatePolyIdeal(map_id, map_r, src_r, dest_r, mp, mideal);
     800      maPoly_Out(mp, src_r);
    780801      return FALSE;
    781802    }
Note: See TracChangeset for help on using the changeset viewer.