]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/mgcd.cpp
Added `degree_vector' utility function.
[ginac.git] / ginac / polynomial / mgcd.cpp
index 1dfd9207a7a767f7b9f373f90206aa1c4b07febe..bf30b5ce1e16027488374a00a35956923dbb497f 100644 (file)
@@ -1,14 +1,36 @@
+/** @file mgcd.cpp
+ *
+ *  Chinese remainder algorithm. */
+
+/*
+ *  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
+ */
+
 #include "operators.h"
 #include "chinrem_gcd.h"
-#include <cln/integer.h>
 #include "pgcd.h"
 #include "collect_vargs.h"
 #include "primes_factory.h"
 #include "divide_in_z_p.h"
 #include "poly_cra.h"
 
-namespace GiNaC
-{
+#include <cln/integer.h>
+
+namespace GiNaC {
 
 static cln::cl_I extract_integer_content(ex& Apr, const ex& A)
 {
@@ -94,4 +116,3 @@ ex chinrem_gcd(const ex& A_, const ex& B_, const exvector& vars)
 }
 
 } // namespace GiNaC
-