Changeset 4ccb094 in git for Singular/iparith.cc


Ignore:
Timestamp:
May 2, 2005, 5:59:29 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
47ec284c095176a99fb82c1ee239e162d30b658c
Parents:
bdd18d5b55a34b858cdda3eae1a0a2f81a06229b
Message:
*hannes: load on demand


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    rbdd18d r4ccb094  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.350 2005-04-29 13:23:02 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.351 2005-05-02 15:58:45 Singular Exp $ */
    55
    66/*
     
    746746      case 0:
    747747        Print("%s of type 'ANY'. Trying load.\n", v->name);
    748         //if(iiTryLoadLib(u, u->name))
     748        if(iiTryLoadLib(u, u->name))
    749749        {
    750750          Werror("'%s' no such package", u->name);
    751751          return TRUE;
    752752        }
    753         //syMake(u,u->name,NULL);
     753        syMake(u,u->name,NULL);
    754754        // else: use next case !!! no break !!!
    755755
     
    21112111    case NUMBER_CMD:
    21122112      {
    2113         /* since basefields are equal, we can apply nCopy */
    2114         res->data = nCopy((number)IDDATA(w));
    2115         res->rtyp = argtype;
    2116         break;
     2113        /* since basefields are equal, we can apply nCopy */
     2114        res->data = nCopy((number)IDDATA(w));
     2115        res->rtyp = argtype;
     2116        break;
    21172117      }
    21182118    case POLY_CMD:
    21192119    case VECTOR_CMD:
    21202120      {
    2121         poly    q = (poly)IDDATA(w);
    2122         res->data = pOppose(r,q);
    2123         res->rtyp = argtype;
    2124         break;
     2121        poly    q = (poly)IDDATA(w);
     2122        res->data = pOppose(r,q);
     2123        res->rtyp = argtype;
     2124        break;
    21252125      }
    21262126    case IDEAL_CMD:
    21272127    case MODUL_CMD:
    21282128      {
    2129         ideal   Q = (ideal)IDDATA(w);
    2130         res->data = idOppose(r,Q);
    2131         res->rtyp = argtype;
    2132         break;
     2129        ideal   Q = (ideal)IDDATA(w);
     2130        res->data = idOppose(r,Q);
     2131        res->rtyp = argtype;
     2132        break;
    21332133      }
    21342134    case MATRIX_CMD:
    21352135      {
    2136         ring save = currRing;
    2137         rChangeCurrRing(r);
    2138         matrix  m = (matrix)IDDATA(w);
    2139         ideal   Q = idMatrix2Module(mpCopy(m));
    2140         rChangeCurrRing(save);
     2136        ring save = currRing;
     2137        rChangeCurrRing(r);
     2138        matrix  m = (matrix)IDDATA(w);
     2139        ideal   Q = idMatrix2Module(mpCopy(m));
     2140        rChangeCurrRing(save);
    21412141        ideal   S = idOppose(r,Q);
    2142         id_Delete(&Q, r);
    2143         res->data = idModule2Matrix(S);
    2144         res->rtyp = argtype;
    2145         break;
     2142        id_Delete(&Q, r);
     2143        res->data = idModule2Matrix(S);
     2144        res->rtyp = argtype;
     2145        break;
    21462146      }
    21472147    default:
    21482148      {
    2149         WerrorS("unsupported type in oppose");
    2150         return TRUE;
     2149        WerrorS("unsupported type in oppose");
     2150        return TRUE;
    21512151      }
    21522152    }
Note: See TracChangeset for help on using the changeset viewer.