Changeset 9cb4078 in git for kernel/f5data.cc


Ignore:
Timestamp:
Mar 4, 2009, 9:23:05 PM (14 years ago)
Author:
Christian Eder
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
fe880793d1fe5f78cc5038ae512e18c6cbaab42c
Parents:
fcef59fcd75c37051211c94b3423f0d319602d9d
Message:
implemented interreduction, still with lots of bugs => commented out


git-svn-id: file:///usr/local/Singular/svn/trunk@11514 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/f5data.cc

    rfcef59 r9cb4078  
     1//! \file f5data.h
    12/****************************************
    23*  Computer Algebra System SINGULAR     *
    34****************************************/
    4 /* $Id: f5data.cc,v 1.8 2009-02-19 14:52:34 ederc Exp $ */
     5/* $Id: f5data.cc,v 1.9 2009-03-04 20:23:05 ederc Exp $ */
    56/*
    67* ABSTRACT: lpolynomial definition
     
    2627#include "f5lists.h"
    2728/*
    28 ================================================================
    29 all functions working on the class LPoly for labeled polynomials
    30 ================================================================
     29=====================
     30everything is inlined
     31=====================
    3132*/
    32 LPoly::LPoly(poly t,int i,poly p, Rule* r) {
    33     set(t,i,p,r);
    34 }
    35 
    36 void LPoly::setPoly(poly p)  {
    37     //poly _p     =   pInit();
    38     //_p          =   pCopy(p);
    39     polynomial = p;
    40 }
    41 
    42 void LPoly::setTerm(poly t) {
    43     //poly _t     =   pInit();
    44     //_t          =   pCopy(t);
    45     term = t;
    46 }
    47 
    48 void LPoly::setIndex(int i) {
    49     index = i;
    50 }
    51 
    52 void LPoly::setRule(Rule* r) {
    53     _rule   =   r;
    54 }
    55 
    56 poly LPoly::getPoly() {
    57     return polynomial;
    58 }
    59 
    60 poly LPoly::getTerm() {
    61     return term;
    62 }
    63 
    64 int LPoly::getIndex() {
    65     return index;
    66 }
    67 
    68 Rule* LPoly::getRule() {
    69     return _rule;
    70 }
    71 void LPoly::set(poly t, int i, poly p, Rule* r) {
    72     this->setTerm(t);
    73     this->setIndex(i);
    74     this->setPoly(p);
    75     this->setRule(r);
    76 }
    77 
    78 LPoly* LPoly::get() {
    79     return this;
    80 }
    81 
    82 /*
    83 ====================================
    84 functions working on the class CPair
    85 ====================================
    86 */
    87 CPair::CPair(long degree, poly term1, LPoly* lpoly1, poly term2, LPoly* lpoly2, Rule* r) {
    88    deg              =   degree;
    89    t1               =   term1;
    90    lp1              =   lpoly1;
    91    t2               =   term2;
    92    lp2              =   lpoly2;
    93    testedRule       =   r;
    94 }
    95 
    96 long CPair::getDeg() {
    97     return deg;
    98 }
    99 
    100 poly CPair::getT1() {
    101     return t1;
    102 }
    103 
    104 poly* CPair::getAdT1() {
    105     return &t1;
    106 }
    107 
    108 poly* CPair::getAdT2() {
    109     return &t2;
    110 }
    111 
    112 poly CPair::getT2() {
    113     return t2;
    114 }
    115 
    116 LPoly* CPair::getAdLp1() {
    117     return lp1;
    118 }
    119 
    120 LPoly* CPair::getAdLp2() {
    121     return lp2;
    122 }
    123 
    124 poly CPair::getLp1Poly() {
    125     return lp1->getPoly();
    126 }
    127 
    128 poly CPair::getLp2Poly() {
    129     return lp2->getPoly();
    130 }
    131 
    132 poly CPair::getLp1Term() {
    133     return lp1->getTerm();
    134 }
    135 
    136 poly CPair::getLp2Term() {
    137     return lp2->getTerm();
    138 }
    139 
    140 int CPair::getLp1Index() {
    141     return lp1->getIndex();
    142 }
    143 
    144 int CPair::getLp2Index() {
    145     return lp2->getIndex();
    146 }
    147 
    148 Rule* CPair::getTestedRule() {
    149     return testedRule;
    150 }
    151 
    152 void CPair::setTestedRule(Rule* r) {
    153     testedRule      =   r;
    154 }
    155 
    156 /*
    157 ===================================
    158 functions working on the class Rule
    159 ===================================
    160 */
    161 Rule::Rule(int i, poly t) {
    162     index   =   i;
    163     term    =   t;
    164 }
    165 
    166 int Rule::getIndex() {
    167     return index;
    168 }
    169 
    170 poly Rule::getTerm() {
    171     return term;
    172 }
    17333#endif
Note: See TracChangeset for help on using the changeset viewer.