Changeset c7ae4d in git for Singular/number2.h


Ignore:
Timestamp:
Aug 31, 2016, 12:30:31 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
e180f5613c396d33aa3316cd450d3a1e80d69129
Parents:
7e2307f3485ab92e550254c1212dafc2940b41ea
Message:
Singular_4_1: parent(..)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/number2.h

    r7e2307 rc7ae4d  
    99#include <kernel/structs.h>
    1010struct snumber2;
     11struct spoly2;
    1112typedef struct snumber2 *   number2;
     13typedef struct spoly2 *     poly2;
    1214struct snumber2
    1315{ coeffs cf;
     
    1517};
    1618
     19struct spoly2
     20{ ring cf;
     21  poly n;
     22};
     23
    1724static inline number2 n2Init(long i, coeffs c)
    1825{ number2 N=(number2)omAlloc0(sizeof(snumber2)); if (c!=NULL) { N->cf=c; N->n=n_Init(i,c);} return N;}
     26
     27static inline poly2 p2Init(long i, ring c)
     28{ poly2 N=(poly2)omAlloc0(sizeof(spoly2)); if (c!=NULL) { N->cf=c; N->n=p_ISet(i,c);} return N;}
    1929
    2030char *crString(coeffs c);
     
    3141BOOLEAN jjN2_CR(leftv res, leftv a);              // number2 ->cring
    3242BOOLEAN jjCM_CR(leftv res, leftv a);              // cmatrix ->cring
    33 BOOLEAN jjBIM2_CR(leftv res, leftv a);              // bigint ->cring
     43BOOLEAN jjBIM2_CR(leftv res, leftv a);            // bigint ->cring
    3444BOOLEAN jjR2_CR(leftv res, leftv a);              // ring ->cring
    35 BOOLEAN jjN2_N(leftv res, leftv a);             // number2 ->number
    36 
     45BOOLEAN jjN2_N(leftv res, leftv a);               // number2 ->number
     46BOOLEAN jjP2_R(leftv res, leftv a);              // poly2 ->ring
    3747// operations:
    3848BOOLEAN jjNUMBER2_OP1(leftv res, leftv a);
    3949BOOLEAN jjNUMBER2_OP2(leftv res, leftv a, leftv b);
     50BOOLEAN jjNUMBER2_POW(leftv res, leftv a, leftv b);
     51BOOLEAN jjPOLY2_OP1(leftv res, leftv a);
     52BOOLEAN jjPOLY2_OP2(leftv res, leftv a, leftv b);
     53BOOLEAN jjPOLY2_POW(leftv res, leftv a, leftv b);
    4054
    4155number2 n2Copy(const number2 d);
     
    4458void n2Print(number2 d);
    4559
     60poly2 p2Copy(const poly2 d);
     61void p2Delete(poly2 &d);
     62char *p2String(poly2 d, BOOLEAN typed);
     63void p2Print(poly2 d);
     64
    4665BOOLEAN jjCMATRIX_3(leftv, leftv, leftv,leftv);
    4766#endif
Note: See TracChangeset for help on using the changeset viewer.