Changeset 1ddd04 in git


Ignore:
Timestamp:
Apr 20, 2011, 7:14:08 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
17e473accf9564b8b0b38cf730a72e24272bad8a
Parents:
0ebd7e2b6d36c0b21765218475b3441258a77b4d
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-20 19:14:08+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:23+01:00
Message:
rDefault via coeffs
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r0ebd7e r1ddd04  
    136136*/
    137137
    138 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
     138ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
    139139{
    140140  ring r=(ring) omAlloc0Bin(sip_sring_bin);
    141   r->ch    = ch;
     141  r->ch    = n_GetChar(cf);
    142142  r->N     = N;
     143  r->cf = cf;
    143144  /*r->P     = 0; Alloc0 */
    144145  /*names*/
     
    161162  return r;
    162163}
    163 
    164 ring rDefault(int ch, int N, char **n)
    165 {
     164ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
     165{
     166  coeffs cf;
     167  if (ch==0) cf=nInitChar(n_Q,NULL);
     168  else       cf=nInitChar(n_Zp,(void*)(long)ch);
     169  return rDefault(cf,N,n,ord_size,ord,block0,block1);
     170}
     171ring   rDefault(coeffs cf, int N, char **n)
     172
    166173  /*order: lp,0*/
    167174  int *order = (int *) omAlloc(2* sizeof(int));
     
    175182  order[1]  = 0;
    176183
    177   return rDefault(ch,N,n,2,order,block0,block1);
     184  return rDefault(cf,N,n,2,order,block0,block1);
     185}
     186
     187ring rDefault(int ch, int N, char **n)
     188{
     189  coeffs cf;
     190  if (ch==0) cf=nInitChar(n_Q,NULL);
     191  else       cf=nInitChar(n_Zp,(void*)(long)ch);
     192  return rDefault(cf,N,n);
    178193}
    179194
  • libpolys/polys/monomials/ring.h

    r0ebd7e r1ddd04  
    330330idhdl  rDefault(const char *s);
    331331ring   rDefault(int ch, int N, char **n);
     332ring   rDefault(coeffs cf, int N, char **n);
    332333ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
     334ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    333335
    334336// #define rIsRingVar(A) r_IsRingVar(A,currRing)
Note: See TracChangeset for help on using the changeset viewer.