Changeset ab0444 in git for factory/int_cf.cc
- Timestamp:
- Oct 10, 1997, 12:23:17 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ea023f348141a73f5256124e56811ca67beb49bd
- Parents:
- 1be0737621cf02343ddf8f049c613c26e6260103
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/int_cf.cc
r1be073 rab0444 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_cf.cc,v 1. 5 1997-09-10 15:39:52schmidt Exp $ */2 /* $Id: int_cf.cc,v 1.6 1997-10-10 10:23:17 schmidt Exp $ */ 3 3 4 4 #include <config.h> … … 9 9 #include "int_cf.h" 10 10 #include "canonicalform.h" 11 #include "cf_factory.h" 11 12 12 13 //{{{ CanonicalForm InternalCF::lc (), Lc (), LC () 14 // docu: see CanonicalForm::lc(), Lc(), LC() 13 15 CanonicalForm 14 InternalCF::lc ()16 InternalCF::lc () 15 17 { 16 18 return CanonicalForm( copyObject() ); … … 18 20 19 21 CanonicalForm 20 InternalCF::L C()22 InternalCF::Lc () 21 23 { 22 24 return CanonicalForm( copyObject() ); 23 25 } 24 26 27 CanonicalForm 28 InternalCF::LC () 29 { 30 return CanonicalForm( copyObject() ); 31 } 32 //}}} 33 34 //{{{ int InternalCF::degree () 35 // docu: see CanonicalForm::degree() 25 36 int 26 InternalCF::degree ()37 InternalCF::degree () 27 38 { 28 39 if ( isZero() ) … … 31 42 return 0; 32 43 } 44 //}}} 33 45 46 //{{{ CanonicalForm InternalCF::tailcoeff (), int InternalCF::taildegree () 47 // docu: see CanonicalForm::tailcoeff(), taildegree() 34 48 CanonicalForm 35 InternalCF::tailcoeff ()49 InternalCF::tailcoeff () 36 50 { 37 51 return CanonicalForm( copyObject() ); … … 39 53 40 54 int 41 InternalCF::taildegree ()55 InternalCF::taildegree () 42 56 { 43 57 return 0; 44 58 } 59 //}}} 60 61 //{{{ InternalCF* InternalCF::num (), den () 62 // docu: see CanonicalForm::num(), den() 63 InternalCF* 64 InternalCF::num () 65 { 66 return copyObject(); 67 } 68 69 InternalCF* 70 InternalCF::den () 71 { 72 return CFFactory::basic( 1 ); 73 } 74 //}}} 75 76 //{{{ int InternalCF::sign () const 77 // docu: see CanonicalForm::sign() 78 int 79 InternalCF::sign () const 80 { 81 ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() ); 82 return 0; 83 } 84 //}}} 85 86 //{{{ InternalCF* InternalCF::sqrt () 87 // docu: see CanonicalForm::sqrt() 88 InternalCF* 89 InternalCF::sqrt () 90 { 91 ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() ); 92 return 0; 93 } 94 //}}} 95 96 //{{{ int InternalCF::ilog2 () 97 // docu: see CanonicalForm::ilog2() 98 int 99 InternalCF::ilog2 () 100 { 101 ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() ); 102 return 0; 103 } 104 //}}} 45 105 46 106 CanonicalForm … … 60 120 } 61 121 62 //{{{ int InternalCF::sign () const63 // docu: see CanonicalForm::sign()64 int65 InternalCF::sign () const66 {67 ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );68 return 0;69 }70 //}}}71 72 122 InternalCF* 73 123 InternalCF::invert() … … 75 125 ASSERT1( 0, "internal factory error: not implemented for class %s", this->classname() ); 76 126 return 0; 77 }78 79 InternalCF*80 InternalCF::num()81 {82 return copyObject();83 }84 85 InternalCF*86 InternalCF::den()87 {88 return genOne();89 127 } 90 128 … … 95 133 return 0; 96 134 } 97 98 InternalCF*99 InternalCF::sqrt()100 {101 ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );102 return 0;103 }104 105 //{{{ int InternalCF::ilog2()106 // docu: see CanonicalForm::ilog2()107 int108 InternalCF::ilog2()109 {110 ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );111 return 0;112 }113 //}}}
Note: See TracChangeset
for help on using the changeset viewer.