GiNaCRA
0.6.4
|
00001 /* 00002 * GiNaCRA - GiNaC Real Algebra package 00003 * Copyright (C) 2010-2012 Ulrich Loup, Joachim Redies, Sebastian Junges 00004 * 00005 * This file is part of GiNaCRA. 00006 * 00007 * GiNaCRA is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * GiNaCRA is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with GiNaCRA. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 */ 00021 00022 00023 #ifndef GINACRA_MULTIVARIATECOEFFICIENT_H 00024 #define GINACRA_MULTIVARIATECOEFFICIENT_H 00025 00026 #include "MultivariateTerm.h" 00027 00028 namespace GiNaCRA 00029 { 00041 template<class monomialOrdering> 00042 class MultivariateCoefficient: 00043 public MultivariateTerm<monomialOrdering> 00044 { 00045 public: 00046 00048 // Con- and destructors // 00050 00051 MultivariateCoefficient(); 00052 00057 MultivariateCoefficient( const MultivariatePolynomial<monomialOrdering>& p ); 00058 00064 MultivariateCoefficient( const ex& p, const vector<symbol>& l ) throw ( invalid_argument ); 00065 00067 // Selectors // 00069 00075 int order( symbol v ) const; 00076 00078 // Operators // 00080 00081 // binary arithmetic operators 00082 const MultivariateCoefficient<monomialOrdering> operator *( const MultivariateCoefficient<monomialOrdering>& ); 00083 00084 // assignment operators 00085 const MultivariateCoefficient<monomialOrdering>& operator = ( const MultivariateCoefficient<monomialOrdering>& ); 00086 const MultivariateCoefficient<monomialOrdering>& operator = ( const ex& ); 00087 00089 // Operations // 00091 00093 // Arithmetic Operations // 00095 00100 const MultivariateCoefficient<monomialOrdering> mul( const MultivariateCoefficient<monomialOrdering>& o ) const 00101 throw ( invalid_argument ); 00102 00104 // Static Methods // 00106 00107 protected: 00108 00110 // Relational Operations // 00112 00113 private: 00114 00116 // Attributes // 00118 00120 // Auxiliary methods// 00122 00123 }; // class MultivariateCoefficient 00124 00126 // IMPLEMENTATION (in header file because of template parameter) // 00128 00129 #include "MultivariateCoefficient.tpp" 00130 00131 } // namespace GiNaC 00132 00133 #endif