CoCoALib-0.9905 date: 23 May 2007


RingDistrMPoly.H

Go to the documentation of this file.
00001 #ifndef CoCoA_RingDistrMPoly_H
00002 #define CoCoA_RingDistrMPoly_H
00003 
00004 //   Copyright (c)  2005-2007  John Abbott
00005 
00006 //   This file is part of the source of CoCoALib, the CoCoA Library.
00007 
00008 //   CoCoALib is free software; you can redistribute it and/or modify
00009 //   it under the terms of the GNU General Public License (version 2)
00010 //   as published by the Free Software Foundation.  A copy of the full
00011 //   licence may be found in the file COPYING in this directory.
00012 
00013 //   CoCoALib is distributed in the hope that it will be useful,
00014 //   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //   GNU General Public License for more details.
00017 
00018 //   You should have received a copy of the GNU General Public License
00019 //   along with CoCoA; if not, write to the Free Software
00020 //   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 
00022 
00023 #include <vector>
00024 //using std::vector;
00025 
00026 namespace CoCoA
00027 {
00028 
00029   class symbol;         // forward declaration -- defined in symbol.H
00030   class PPOrdering;     // forward declaration -- defined in PPOrdering.H
00031   class PPMonoid;       // forward declaration -- defined in PPMonoid.H
00032   class SparsePolyRing; // forward declaration -- defined in SparsePolyRing.H
00033   class ring;           // forward declaration -- defined in ring.H
00034 
00035   // Pseudo-ctors for (sparse) polynomial rings.
00036 
00037   SparsePolyRing NewPolyRing_DMP(const ring& CoeffRing, const PPMonoid& PPM);
00038   SparsePolyRing NewPolyRing_DMP(const ring& CoeffRing, const std::vector<symbol>& IndetNames, const PPOrdering& ord);
00039   SparsePolyRing NewPolyRing_DMP(const ring& CoeffRing, const std::vector<symbol>& IndetNames); ///< Default ordering is StdDegRevLex
00040   SparsePolyRing NewPolyRing_DMP(const ring& CoeffRing, std::size_t NumIndets); ///< Default ordering is StdDegRevLex
00041 
00042 } // end of namespace CoCoA
00043 
00044 
00045 
00046 // RCS header/log in the next few lines
00047 // $Header: /Volumes/Home/cocoa/cvs-repository/CoCoALib-0.99/include/CoCoA/RingDistrMPoly.H,v 1.1.1.1 2007/03/09 15:16:11 abbott Exp $
00048 // $Log: RingDistrMPoly.H,v $
00049 // Revision 1.1.1.1  2007/03/09 15:16:11  abbott
00050 // Imported files
00051 //
00052 // Revision 1.8  2007/03/08 11:07:12  cocoa
00053 // Made pseudo ctors for polynomial rings more uniform.  This allowed me to
00054 // remove an include of CoCoA/symbol.H  from the RingDistrM*.H files, but then
00055 // I had to put the include in several .C files.
00056 //
00057 // Revision 1.7  2007/02/10 18:44:03  cocoa
00058 // Added "const" twice to each test and example.
00059 // Eliminated dependency on io.H in several files.
00060 // Improved BuildInfo, and added an example about how to use it.
00061 // Some other minor cleaning.
00062 //
00063 // Revision 1.6  2006/12/06 17:15:26  cocoa
00064 // -- removed #include "config.H"
00065 //
00066 // Revision 1.5  2006/11/24 17:25:00  cocoa
00067 // -- reorganized includes of header files
00068 //
00069 // Revision 1.4  2006/11/22 14:46:26  cocoa
00070 // -- added #include "CoCoA/symbol.H"
00071 //
00072 // Revision 1.3  2006/10/06 14:04:15  cocoa
00073 // Corrected position of #ifndef in header files.
00074 // Separated CoCoA_ASSERT into assert.H from config.H;
00075 // many minor consequential changes (have to #include assert.H).
00076 // A little tidying of #include directives (esp. in Max's code).
00077 //
00078 // Revision 1.2  2006/06/08 16:45:28  cocoa
00079 // -- RingDistrMPoly*.H  have been "moved" into RingDistrMPoly*.C
00080 // -- some coding conventions fixed in DistrMPoly*
00081 // -- functions wdeg and CmpWDeg have a common implementation in SparsePolyRing
00082 //
00083 // Revision 1.1.1.1  2006/05/30 11:39:37  cocoa
00084 // Imported files
00085 //
00086 // Revision 1.13  2006/05/29 16:22:37  cocoa
00087 // Third time lucky???
00088 // Added myIsInteger member function to all rings (NYI for RingFloat).
00089 //
00090 // Revision 1.12  2006/05/12 17:06:09  cocoa
00091 // -- moved myIsUnit, myGcd into SparsePolyRing (common implementation)
00092 //
00093 // Revision 1.11  2006/05/12 16:10:58  cocoa
00094 // Added OpenMathFwd.H, and tidied OpenMath.H.
00095 // Many consequential but trivial changes.
00096 //
00097 // Revision 1.10  2006/04/26 16:44:53  cocoa
00098 // -- myMul has now a single implementation in SparsePolyRing
00099 // -- myMul and mul in RingDistrMPoly* and DistrMPoly* have been disabled
00100 //
00101 // Revision 1.9  2006/03/21 09:43:14  cocoa
00102 // Changed names of some member fns of ideals (dealing with setting and testing
00103 // the flags for primeness and maximality).  Hope icc will complain less now.
00104 //
00105 // Revision 1.8  2006/03/17 18:10:27  cocoa
00106 // -- changed: myMul --> myMulByPP
00107 //
00108 // Revision 1.7  2006/03/15 18:09:31  cocoa
00109 // Changed names of member functions which print out their object
00110 // into myOutputSelf -- hope this will appease the Intel C++ compiler.
00111 //
00112 // Revision 1.6  2006/03/14 15:01:49  cocoa
00113 // Improved the implementation of ring member fns for computing powers.
00114 // Should keep Intel C++ compiler quieter too.
00115 //
00116 // Revision 1.5  2006/03/12 21:28:34  cocoa
00117 // Major check in after many changes
00118 //
00119 // Revision 1.4  2006/03/07 10:06:12  cocoa
00120 // -- fixed: PPMonoidElem LPP(f) now returns ConstRefPPMonoidElem
00121 //
00122 // Revision 1.3  2006/02/20 22:41:20  cocoa
00123 // All forms of the log function for power products now return SmallExponent_t
00124 // (instead of int).  exponents now resizes the vector rather than requiring
00125 // the user to pass in the correct size.
00126 //
00127 // Revision 1.2  2006/01/19 18:03:53  cocoa
00128 // -- fixed coding conventions for myGBasis, myGBasisValue
00129 // -- fixed myReduceMod (NF - tested)
00130 //
00131 // Revision 1.1.1.1  2005/10/17 10:46:54  cocoa
00132 // Imported files
00133 //
00134 // Revision 1.6  2005/08/08 16:36:33  cocoa
00135 // Just checking in before going on holiday.
00136 // Don't really recall what changes have been made.
00137 // Added IsIndet function for RingElem, PPMonoidElem,
00138 // and a member function of OrdvArith.
00139 // Improved the way failed assertions are handled.
00140 //
00141 // Revision 1.5  2005/07/15 16:34:33  cocoa
00142 // Added iterators for sparse polynomials.
00143 // The code compiles (and the old tests still run).
00144 // It'd Friday evening -- I'm going home before
00145 // getting any ideas about making the iterator code run.
00146 //
00147 // Revision 1.4  2005/07/08 15:09:29  cocoa
00148 // Added new symbol class (to represent names of indets).
00149 // Integrated the new class into concrete polynomial rings
00150 // and PPMonoid -- many consequential changes.
00151 // Change ctors for the "inline" sparse poly rings: they no
00152 // longer expect a PPMonoid, but build their own instead
00153 // (has to be a PPMonoidOv).
00154 //
00155 // Revision 1.3  2005/07/01 16:08:16  cocoa
00156 // Friday check-in.  Major change to structure under PolyRing:
00157 // now SparsePolyRing and DUPolyRing are separated (in preparation
00158 // for implementing iterators).
00159 //
00160 // A number of other relatively minor changes had to be chased through
00161 // (e.g. IndetPower).
00162 //
00163 // Revision 1.2  2005/06/22 14:47:56  cocoa
00164 // PPMonoids and PPMonoidElems updated to mirror the structure
00165 // used for rings and RingElems.  Many consequential changes.
00166 //
00167 // Revision 1.1.1.1  2005/05/03 15:47:30  cocoa
00168 // Imported files
00169 //
00170 // Revision 1.5  2005/04/27 16:14:56  cocoa
00171 // Cleaned up example programs -- added "free use" permit.
00172 // Changed a couple of ErrorInfo object names, and added
00173 // ERR::NotTrueGCDDomain.
00174 //
00175 // Revision 1.4  2005/04/21 15:12:19  cocoa
00176 // Revised NewPolyRing as Dag Arneson suggested (perhaps just an interim
00177 // measure).
00178 // Brought example programs up to date (new name for CoCoA error
00179 // information objects).
00180 //
00181 // Revision 1.3  2005/04/19 14:06:04  cocoa
00182 // Added GPL and GFDL licence stuff.
00183 //
00184 // Revision 1.2  2005/02/11 14:15:20  cocoa
00185 // New style ring elements and references to ring elements;
00186 // I hope I have finally got it right!
00187 //
00188 // Revision 1.1.1.1  2005/01/27 15:12:13  cocoa
00189 // Imported files
00190 //
00191 // Revision 1.12  2004/11/18 18:33:41  cocoa
00192 // Now every ring know its own "one" element (as well as "zero").
00193 // Several consequential changes.
00194 //
00195 // Revision 1.11  2004/11/11 13:11:09  cocoa
00196 // -- minor changes for doxygen
00197 //
00198 // Revision 1.10  2004/11/04 18:47:43  cocoa
00199 // (1) Ring member functions which previously expected mpz_t args
00200 //     now expect ZZ args.  Numerous minor consequential changes.
00201 // (2) Renamed function which gives access to the mpz_t value inside
00202 //     a ZZ object: previously was raw(...), now is mpzref(...).
00203 //     Plenty of calls had to be altered.
00204 //
00205 // Revision 1.9  2004/10/21 17:16:37  cocoa
00206 // Fairly major change: new OrdvArith namspace with various members,
00207 //   new global typedef  SmallExponent_t (defined in config.H).
00208 //
00209 // Revision 1.8  2004/07/27 16:03:39  cocoa
00210 // Added IsCommutative test and IamCommutative member function
00211 // to all rings.  Tidied geobuckets a little.
00212 //
00213 // Revision 1.7  2004/07/20 15:04:06  cocoa
00214 // The next step in the new "ring element" conversion process:
00215 // handling the case of creating a "const RefRingElem" object
00216 // (since C++ refuses to do this properly itself).
00217 //
00218 // Revision 1.6  2004/05/24 15:52:14  cocoa
00219 // Major update:
00220 //   new error mechanism
00221 //   many fixes
00222 //   RingHoms almost work now
00223 //   RingFloat much improved
00224 //
00225 // Revision 1.5  2004/04/08 15:33:34  cocoa
00226 // Added function IsInteger, and the related RingBase::myIsInteger
00227 // virtual function, plus all necessary implementations.
00228 //
00229 // Revision 1.4  2004/03/20 17:46:10  cocoa
00230 // Check in prior to departure to RWCA
00231 //
00232 // Revision 1.3  2004/01/30 14:07:10  cocoa
00233 // Tidied RingRawValue union: now it contains just two fields,
00234 // and has no need of forward declarations of types used internally
00235 // by the concrete rings -- it uses explicitly a void* instead.
00236 //
00237 // I have tidied the "import" functions used by most concrete rings.
00238 //
00239 // I have moved the choice of representation type for RingFp and RingFpLog
00240 // into a typedef in config.H -- this is to recognise that different
00241 // choices may work best on different platforms.
00242 //
00243 // Revision 1.2  2004/01/28 16:27:00  cocoa
00244 // Added the necessary for CmpDeg to work.
00245 //
00246 // Revision 1.1  2003/11/21 14:33:54  cocoa
00247 // -- First Import
00248 //
00249 
00250 #endif

Generated on Wed May 23 13:45:23 2007 for CoCoALib by  doxygen 1.4.6