CoCoALib-0.9905 date: 23 May 2007


RingDistrMPolyInlFpPP.H

Go to the documentation of this file.
00001 #ifndef CoCoA_RingDistrMPolyInlFpPP_H
00002 #define CoCoA_RingDistrMPolyInlFpPP_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 SparsePolyRing; // forward declaration -- defined in SparsePolyRing.H
00032   class ring;           // forward declaration -- defined in ring.H
00033 
00034   // Pseudo-ctors for (sparse) polynomial rings.
00035 
00036   SparsePolyRing NewPolyRing_DMPII(const ring& CoeffRing, const std::vector<symbol>& IndetNames, const PPOrdering& ord);
00037   SparsePolyRing NewPolyRing_DMPII(const ring& CoeffRing, const std::vector<symbol>& IndetNames); ///< Default ordering is StdDegRevLex
00038   SparsePolyRing NewPolyRing_DMPII(const ring& CoeffRing, std::size_t NumIndets); ///< Default ordering is StdDegRevLex
00039 
00040 } // end of namespace CoCoA
00041 
00042 
00043 
00044 // RCS header/log in the next few lines
00045 // $Header: /Volumes/Home/cocoa/cvs-repository/CoCoALib-0.99/include/CoCoA/RingDistrMPolyInlFpPP.H,v 1.1.1.1 2007/03/09 15:16:11 abbott Exp $
00046 // $Log: RingDistrMPolyInlFpPP.H,v $
00047 // Revision 1.1.1.1  2007/03/09 15:16:11  abbott
00048 // Imported files
00049 //
00050 // Revision 1.8  2007/03/08 18:42:05  cocoa
00051 // Cleaned up whitespace.
00052 //
00053 // Revision 1.7  2007/03/08 11:07:12  cocoa
00054 // Made pseudo ctors for polynomial rings more uniform.  This allowed me to
00055 // remove an include of CoCoA/symbol.H  from the RingDistrM*.H files, but then
00056 // I had to put the include in several .C files.
00057 //
00058 // Revision 1.6  2006/11/27 13:45:56  cocoa
00059 // -- removed #include "config.H"
00060 //
00061 // Revision 1.5  2006/11/24 17:25:00  cocoa
00062 // -- reorganized includes of header files
00063 //
00064 // Revision 1.4  2006/11/22 14:46:26  cocoa
00065 // -- added #include "CoCoA/symbol.H"
00066 //
00067 // Revision 1.3  2006/10/06 14:04:15  cocoa
00068 // Corrected position of #ifndef in header files.
00069 // Separated CoCoA_ASSERT into assert.H from config.H;
00070 // many minor consequential changes (have to #include assert.H).
00071 // A little tidying of #include directives (esp. in Max's code).
00072 //
00073 // Revision 1.2  2006/06/08 16:45:28  cocoa
00074 // -- RingDistrMPoly*.H  have been "moved" into RingDistrMPoly*.C
00075 // -- some coding conventions fixed in DistrMPoly*
00076 // -- functions wdeg and CmpWDeg have a common implementation in SparsePolyRing
00077 //
00078 // Revision 1.1.1.1  2006/05/30 11:39:37  cocoa
00079 // Imported files
00080 //
00081 // Revision 1.15  2006/05/29 16:22:37  cocoa
00082 // Third time lucky???
00083 // Added myIsInteger member function to all rings (NYI for RingFloat).
00084 //
00085 // Revision 1.14  2006/05/12 17:06:09  cocoa
00086 // -- moved myIsUnit, myGcd into SparsePolyRing (common implementation)
00087 //
00088 // Revision 1.13  2006/05/12 16:10:58  cocoa
00089 // Added OpenMathFwd.H, and tidied OpenMath.H.
00090 // Many consequential but trivial changes.
00091 //
00092 // Revision 1.12  2006/04/26 16:44:53  cocoa
00093 // -- myMul has now a single implementation in SparsePolyRing
00094 // -- myMul and mul in RingDistrMPoly* and DistrMPoly* have been disabled
00095 //
00096 // Revision 1.11  2006/03/30 16:59:27  cocoa
00097 // -- changed misleading name: InlineCoeffRing --> InlineCoeffImpl
00098 // -- new: implementation for homomorphisms
00099 // -- rearrangement of code to mimic RingDistrMPolyInlPP
00100 //
00101 // Revision 1.10  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.9  2006/03/17 18:10:27  cocoa
00106 // -- changed: myMul --> myMulByPP
00107 //
00108 // Revision 1.8  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.7  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.6  2006/03/12 21:28:34  cocoa
00117 // Major check in after many changes
00118 //
00119 // Revision 1.5  2006/03/07 10:06:12  cocoa
00120 // -- fixed: PPMonoidElem LPP(f) now returns ConstRefPPMonoidElem
00121 //
00122 // Revision 1.4  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.3  2006/01/20 17:44:20  cocoa
00128 // Friday afternoon check-in: you have been warned!
00129 // Fixed ref counting bug in SmartPtrIRC.
00130 // Added sum/product functions in tmp.H.
00131 // Minor tidying here and there.
00132 //
00133 // Revision 1.2  2006/01/19 18:03:53  cocoa
00134 // -- fixed coding conventions for myGBasis, myGBasisValue
00135 // -- fixed myReduceMod (NF - tested)
00136 //
00137 // Revision 1.1.1.1  2005/10/17 10:46:54  cocoa
00138 // Imported files
00139 //
00140 // Revision 1.6  2005/08/08 16:36:33  cocoa
00141 // Just checking in before going on holiday.
00142 // Don't really recall what changes have been made.
00143 // Added IsIndet function for RingElem, PPMonoidElem,
00144 // and a member function of OrdvArith.
00145 // Improved the way failed assertions are handled.
00146 //
00147 // Revision 1.5  2005/07/15 16:34:33  cocoa
00148 // Added iterators for sparse polynomials.
00149 // The code compiles (and the old tests still run).
00150 // It'd Friday evening -- I'm going home before
00151 // getting any ideas about making the iterator code run.
00152 //
00153 // Revision 1.4  2005/07/08 15:09:29  cocoa
00154 // Added new symbol class (to represent names of indets).
00155 // Integrated the new class into concrete polynomial rings
00156 // and PPMonoid -- many consequential changes.
00157 // Change ctors for the "inline" sparse poly rings: they no
00158 // longer expect a PPMonoid, but build their own instead
00159 // (has to be a PPMonoidOv).
00160 //
00161 // Revision 1.3  2005/07/01 16:08:16  cocoa
00162 // Friday check-in.  Major change to structure under PolyRing:
00163 // now SparsePolyRing and DUPolyRing are separated (in preparation
00164 // for implementing iterators).
00165 //
00166 // A number of other relatively minor changes had to be chased through
00167 // (e.g. IndetPower).
00168 //
00169 // Revision 1.2  2005/06/22 14:47:56  cocoa
00170 // PPMonoids and PPMonoidElems updated to mirror the structure
00171 // used for rings and RingElems.  Many consequential changes.
00172 //
00173 // Revision 1.1.1.1  2005/05/03 15:47:30  cocoa
00174 // Imported files
00175 //
00176 // Revision 1.3  2005/04/19 14:06:04  cocoa
00177 // Added GPL and GFDL licence stuff.
00178 //
00179 // Revision 1.2  2005/02/11 14:15:20  cocoa
00180 // New style ring elements and references to ring elements;
00181 // I hope I have finally got it right!
00182 //
00183 // Revision 1.1.1.1  2005/01/27 15:12:13  cocoa
00184 // Imported files
00185 //
00186 // Revision 1.8  2004/11/18 18:33:41  cocoa
00187 // Now every ring know its own "one" element (as well as "zero").
00188 // Several consequential changes.
00189 //
00190 // Revision 1.7  2004/11/04 18:47:43  cocoa
00191 // (1) Ring member functions which previously expected mpz_t args
00192 //     now expect ZZ args.  Numerous minor consequential changes.
00193 // (2) Renamed function which gives access to the mpz_t value inside
00194 //     a ZZ object: previously was raw(...), now is mpzref(...).
00195 //     Plenty of calls had to be altered.
00196 //
00197 // Revision 1.6  2004/10/29 16:14:42  cocoa
00198 // -- changed PPOrdering calls to OrdvArith
00199 // -- new default monoid: NewPPMonoidSafe with NewStdDegRevLexOrdering
00200 //
00201 // Revision 1.5  2004/10/21 17:16:37  cocoa
00202 // Fairly major change: new OrdvArith namspace with various members,
00203 //   new global typedef  SmallExponent_t (defined in config.H).
00204 //
00205 // Revision 1.4  2004/07/27 16:03:39  cocoa
00206 // Added IsCommutative test and IamCommutative member function
00207 // to all rings.  Tidied geobuckets a little.
00208 //
00209 // Revision 1.3  2004/07/20 15:04:06  cocoa
00210 // The next step in the new "ring element" conversion process:
00211 // handling the case of creating a "const RefRingElem" object
00212 // (since C++ refuses to do this properly itself).
00213 //
00214 // Revision 1.2  2004/07/16 10:11:34  cocoa
00215 // -- now using the new class SmallFpImpl (or SmallFpLogImpl)
00216 // -- updated with "my" coding convenctions
00217 // -- NYI: LC and LCRaw
00218 //
00219 // Revision 1.1  2004/06/25 16:03:06  cocoa
00220 // -- first import
00221 //
00222 
00223 #endif

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