Changeset c5323e in git
- Timestamp:
- Mar 26, 1997, 5:32:24 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f5f16d0c85133c4858c7e8a709212263f1f5870b
- Parents:
- c78b18b1fa50e52018c1f01004e35a9cda192bd7
- Location:
- factory
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/canonicalform.cc
rc78b18b rc5323e 1 1 // emacs editmode for this file is -*- C++ -*- 2 // $Id: canonicalform.cc,v 1. 2 1996-07-02 11:18:32 stobbeExp $2 // $Id: canonicalform.cc,v 1.3 1997-03-26 16:27:09 schmidt Exp $ 3 3 4 4 /* 5 5 $Log: not supported by cvs2svn $ 6 Revision 1.2 1996/07/02 11:18:32 stobbe 7 "initCanonicalForm: now initializes the switch system. 8 " 9 6 10 Revision 1.1 1996/06/13 07:15:50 stobbe 7 11 "CanonicalForm::deriv(x): bug fix, result is now swapped back if x is not … … 15 19 16 20 #include "assert.h" 21 17 22 #include "cf_defs.h" 23 18 24 #include "cf_globals.h" 19 25 #include "canonicalform.h" … … 24 30 #include "gfops.h" 25 31 #include "cf_binom.h" 26 #if defined USE_MEMUTIL && ! defined USE_OLD_MEMMAN32 #if defined (USE_MEMUTIL) && ! defined (USE_OLD_MEMMAN) 27 33 #include "memman.h" 28 34 #endif 29 35 36 #ifndef NOSTREAMIO 30 37 CanonicalForm readCF( istream& ); 31 38 #endif /* NOSTREAMIO */ 32 39 33 40 CanonicalForm::CanonicalForm() : value( CFFactory::basic( (int)0 ) ) … … 413 420 } 414 421 422 #ifndef NOSTREAMIO 415 423 void 416 424 CanonicalForm::print( ostream & os, char * str ) const … … 421 429 value->print( os, str ); 422 430 } 431 #endif /* NOSTREAMIO */ 423 432 424 433 bool … … 999 1008 } 1000 1009 1010 #ifndef NOSTREAMIO 1001 1011 ostream& 1002 1012 operator << ( ostream & os, const CanonicalForm & cf ) … … 1005 1015 return os; 1006 1016 } 1007 1017 #endif /* NOSTREAMIO */ 1018 1019 #ifndef NOSTREAMIO 1008 1020 istream& 1009 1021 operator >> ( istream & is, CanonicalForm & cf ) 1010 1022 { 1011 #ifdef SINGULAR1012 cf = 0;1013 #else1014 1023 cf = readCF( is ); 1015 #endif1016 1024 return is; 1017 1025 } 1026 #endif /* NOSTREAMIO */ 1018 1027 1019 1028 CanonicalForm … … 1125 1134 static bool initialized = false; 1126 1135 if ( ! initialized ) { 1127 #if defined USE_MEMUTIL && ! defined USE_OLD_MEMMAN1136 #if defined (USE_MEMUTIL) && ! defined (USE_OLD_MEMMAN) 1128 1137 (void)mmInit(); 1129 1138 #endif … … 1200 1209 } 1201 1210 } 1202 1211 1203 1212 void 1204 1213 On( int sw ) … … 1261 1270 return CanonicalForm( value->sqrt() ); 1262 1271 } 1263 1272 1264 1273 1265 1274 int … … 1324 1333 } 1325 1334 } 1326 -
factory/canonicalform.h
rc78b18b rc5323e 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: canonicalform.h,v 1. 2 1996-07-15 08:32:46 stobbeExp $2 // $Id: canonicalform.h,v 1.3 1997-03-26 16:28:31 schmidt Exp $ 3 3 4 4 #ifndef INCL_CANONICALFORM_H … … 7 7 /* 8 8 $Log: not supported by cvs2svn $ 9 Revision 1.2 1996/07/15 08:32:46 stobbe 10 "new function linearSystemSolve 11 " 12 9 13 Revision 1.1 1996/06/24 11:26:36 stobbe 10 14 "new function determinant. … … 17 21 */ 18 22 23 #ifndef NOSTREAMIO 19 24 #include <iostream.h> 25 #endif /* NOSTREAMIO */ 20 26 21 27 #include "cf_defs.h" 28 22 29 #include "variable.h" 23 30 #include "templates/list.h" … … 116 123 CanonicalForm& mod ( const CanonicalForm& ); 117 124 118 friend CanonicalForm operator - ( const CanonicalForm& ); 125 friend CanonicalForm operator - ( const CanonicalForm& ); 119 126 120 127 friend CanonicalForm operator + ( const CanonicalForm&, const CanonicalForm& ); … … 130 137 friend bool divremt ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& ); 131 138 139 #ifndef NOSTREAMIO 132 140 void print( ostream&, char * ) const; 133 141 friend ostream& operator << ( ostream&, const CanonicalForm& ); 134 142 friend istream& operator >> ( istream&, CanonicalForm& ); 143 #endif /* NOSTREAMIO */ 135 144 136 145 friend bool operator == ( const CanonicalForm&, const CanonicalForm& ); -
factory/cf_eval.cc
rc78b18b rc5323e 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: cf_eval.cc,v 1. 1 1996-05-24 09:21:54 stobbeExp $2 // $Id: cf_eval.cc,v 1.2 1997-03-26 16:29:50 schmidt Exp $ 3 3 4 4 /* 5 5 $Log: not supported by cvs2svn $ 6 Revision 1.1 1996/05/24 09:21:54 stobbe 7 "operator(): Bug fix, operator( const CanonicalForm & ) now uses 8 values.min() as lower index instead of 2 and produces the 9 right result. 10 " 11 6 12 // Revision 1.0 1996/05/17 10:59:43 stobbe 7 13 // Initial revision … … 10 16 11 17 #include "assert.h" 18 12 19 #include "cf_defs.h" 20 13 21 #include "cf_eval.h" 14 22 … … 51 59 } 52 60 61 #ifndef NOSTREAMIO 53 62 ostream& 54 63 operator<< ( ostream& s, const Evaluation &e ) … … 57 66 return s; 58 67 } 68 #endif /* NOSTREAMIO */ 59 69 60 70 CanonicalForm -
factory/cf_eval.h
rc78b18b rc5323e 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: cf_eval.h,v 1. 0 1996-05-17 10:59:38 stobbeExp $2 // $Id: cf_eval.h,v 1.1 1997-03-26 16:32:24 schmidt Exp $ 3 3 4 4 #ifndef INCL_EVALUATION_H … … 7 7 /* 8 8 $Log: not supported by cvs2svn $ 9 Revision 1.0 1996/05/17 10:59:38 stobbe 10 Initial revision 11 9 12 */ 10 13 14 #ifndef NOSTREAMIO 11 15 #include <iostream.h> 16 #endif /* NOSTREAMIO */ 17 12 18 #include "canonicalform.h" 13 19 … … 31 37 CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const; 32 38 virtual void nextpoint(); 39 #ifndef NOSTREAMIO 33 40 friend ostream& operator<< ( ostream& s, const Evaluation &e ); 41 #endif /* NOSTREAMIO */ 34 42 }; 35 43
Note: See TracChangeset
for help on using the changeset viewer.