]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/sr_gcd_uvar.h
Added `degree_vector' utility function.
[ginac.git] / ginac / polynomial / sr_gcd_uvar.h
index eead0027c418d4976eef6835604f8f3aeff76d6e..a4bba2e5321286f063471fd531fe6adf84f42f6b 100644 (file)
@@ -1,13 +1,36 @@
-#ifndef GINAC_UPOLY_SR_GCD_TCC
-#define GINAC_UPOLY_SR_GCD_TCC
+/** @file sr_gcd_uvar.h
+ *
+ *  GCD function for univariate polynomials using PRS method. */
+
+/*
+ *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef GINAC_UPOLY_SR_GCD_H
+#define GINAC_UPOLY_SR_GCD_H
+
 #include "upoly.h"
 #include "ring_traits.h"
 #include "normalize.h"
 #include "prem_uvar.h"
+
 #include <limits>
 
-namespace GiNaC
-{
+namespace GiNaC {
 
 /// Calculate GCD of two univariate polynomials @a a and @a b using
 /// subresultant pseudo-remainder sequence method
@@ -89,7 +112,6 @@ sr_gcd_priv(T& g, T a, T b,
        } while (true);
 }
 
-}
-
-#endif // GINAC_UPOLY_SR_GCD_TCC
+} // namespace GiNaC
 
+#endif // GINAC_UPOLY_SR_GCD_H