Changeset 0b3a5b in git for Singular/misc_ip.cc


Ignore:
Timestamp:
Mar 9, 2016, 6:09:53 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
0057d85c18702757c2d47d03d57f539b69ec4f5e
Parents:
9b88e6879d7390b971635eddefe0921db1a445c5
Message:
Singular_4_1: add flintZ(n,"...") for flint:nmod_poly_t
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/misc_ip.cc

    r9b88e6 r0b3a5b  
    2828#include <coeffs/OPAEp.h>
    2929#include <coeffs/flintcf_Q.h>
     30#include <coeffs/flintcf_Zn.h>
    3031
    3132#include <polys/ext_fields/algext.h>
     
    11921193  }
    11931194}
     1195#ifdef HAVE_FLINT
     1196static n_coeffType n_FlintZn=n_unknown;
     1197static BOOLEAN ii_FlintZn_init(leftv res,leftv a)
     1198{
     1199  if ((a->Typ()!=INT_CMD)
     1200  ||(a->next==NULL)
     1201  ||(a->next->Typ()!=STRING_CMD))
     1202  {
     1203    WerrorS("`int`i,`string` expected");
     1204    return TRUE;
     1205  }
     1206  else
     1207  {
     1208    flintZn_struct p;
     1209    p.ch=(int)(long)a->Data();
     1210    p.name=(char*)a->next->Data();
     1211    res->rtyp=CRING_CMD;
     1212    res->data=(void*)nInitChar(n_FlintZn,(void*)&p);
     1213    return FALSE;
     1214  }
     1215}
     1216#endif
    11941217#endif
    11951218/*2
     
    13161339      IDDATA(h)=(char*)nInitChar(t,NULL);
    13171340    }
     1341    n_FlintZn=nRegister(n_unknown,flintZn_InitChar);
     1342    if (n_FlintZn!=n_unknown)
     1343    {
     1344      iiAddCproc("kernel","flintZ",FALSE,ii_FlintZn_init);
     1345    }
    13181346    #endif
    13191347  }
Note: See TracChangeset for help on using the changeset viewer.