Changeset 85fd90 in git for Singular


Ignore:
Timestamp:
Sep 28, 2011, 5:48:27 PM (13 years ago)
Author:
Burcin Erocal <burcin@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d56ad872d739d42e59b1beb8ccc89be2a204530d
Parents:
32cc7e437ee85bf7d555756eb824eadce50d50c7
git-author:
Burcin Erocal <burcin@erocal.org>2011-09-28 17:48:27+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:41+01:00
Message:
Fix rChangeCurrRing and make the interpreter pass precision info to real/complex coeffs constructor.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r32cc7e r85fd90  
    50255025  && ((strcmp(pn->name,"real")==0) || (strcmp(pn->name,"complex")==0)))
    50265026  {
     5027    LongComplexInfo param;
    50275028    BOOLEAN complex_flag=(strcmp(pn->name,"complex")==0);
    50285029    const int ch=0;
    50295030    if ((pn->next!=NULL) && (pn->next->Typ()==INT_CMD))
    50305031    {
    5031       WarnS("not implemented: size for real/complex");
    50325032      float_len=(int)(long)pn->next->Data();
    50335033      float_len2=float_len;
     
    50365036      {
    50375037        float_len2=(int)(long)pn->next->Data();
    5038         WarnS("not implemented: size for real/complex");
    50395038        pn=pn->next;
    50405039      }
    50415040    }
    5042     if ((pn->next==NULL) && complex_flag)
    5043     {
    5044       pn->next=(leftv)omAlloc0Bin(sleftv_bin);
    5045       pn->next->name=omStrDup("i");
    5046     }
    5047     else
    5048       WarnS("not implemented: name for i (complex)");
    5049     cf=nInitChar(complex_flag ? n_long_C: n_long_R,NULL);
     5041    // set the parameter name
     5042    if (complex_flag) {
     5043      if (pn->next == NULL)
     5044        param.par_name=(const char*)"i"; //default to i
     5045      else
     5046        param.par_name = (const char*)pn->next->name;
     5047    }
     5048
     5049    param.float_len = float_len;
     5050    param.float_len2 = float_len2;
     5051    cf=nInitChar(complex_flag ? n_long_C: n_long_R, (void*)&param);
    50505052
    50515053    assume( cf != NULL );
Note: See TracChangeset for help on using the changeset viewer.