Changeset 61e855 in git for libpolys


Ignore:
Timestamp:
Dec 5, 2016, 10:13:42 AM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'b324714bf5073469800caef737deba1366fbd81f')
Children:
8d1432ec89236ac387a78cc9cc8071a2127d8f1e
Parents:
3f7f11c9a4692a3c651413c8cd45f6c9f01960d9
Message:
add: nfCoeffString (ffields.cc)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/ffields.cc

    r3f7f11 r61e855  
    827827}
    828828
     829static char nfCoeffName_buf[32];
     830static char* nfCoeffName(const coeffs r)
     831{
     832  const char *p=n_ParameterNames(r)[0];
     833  nfCoeffName_buf[31]='\0';
     834  snprintf(nfCoeffName_buf,31,"ZZ/%ds[%s]",r->m_nfCharQ,p);
     835  return nfCoeffName_buf;
     836}
     837
    829838static number nfRandom(siRandProc p,number ,number, const coeffs cf)
    830839{
     
    841850  r->nCoeffIsEqual=nfCoeffIsEqual;
    842851  r->cfCoeffString=nfCoeffString;
     852  r->cfCoeffName=nfCoeffName;
    843853
    844854  r->cfMult  = nfMult;
Note: See TracChangeset for help on using the changeset viewer.