Changeset 2ab41e8 in git for Singular/extra.cc


Ignore:
Timestamp:
Feb 12, 2009, 2:29:49 PM (15 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
90a60fe38bdb36d2a9edfceca3250e947ac9d379
Parents:
d7d5f6ec23c1062b8e3dbc3905eed0672ce62cbc
Message:
*motsak: tensor product of certain maps


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    rd7d5f6 r2ab41e8  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.292 2009-02-11 14:57:54 monerjan Exp $ */
     4/* $Id: extra.cc,v 1.293 2009-02-12 13:29:49 motsak Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    696696   else
    697697#endif
     698
     699#define HAVE_SHEAFCOH_TRICKS 1
     700
     701#ifdef HAVE_SHEAFCOH_TRICKS
     702    if(strcmp(sys_cmd,"tensorModuleMult")==0)
     703    {
     704//      WarnS("tensorModuleMult!");
     705      if (h!=NULL && h->Typ()==INT_CMD && h->Data() != NULL &&
     706          h->next != NULL && h->next->Typ() == MODUL_CMD
     707          && h->next->Data() != NULL)
     708      {
     709        int m = (int)( (long)h->Data() );
     710        ideal M = (ideal)h->next->Data();
     711
     712        res->rtyp=MODUL_CMD;
     713        res->data=(void *)tensorModuleMult(m, M, currRing);
     714        return FALSE;
     715      }
     716     
     717      WerrorS("system(\"tensorModuleMult\", int, module) expected");
     718      return TRUE;
     719    } else
     720#endif
     721
     722
    698723#ifdef HAVE_PLURAL
    699724/*==================== Approx_Step  =================*/
     
    857882      return FALSE;
    858883    }
     884
     885
     886
    859887   
    860888    /*==================== PLURAL =================*/
Note: See TracChangeset for help on using the changeset viewer.