X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpolynomial%2Fmgcd.cpp;h=b0c1b70a23219c0e414642c1d1ee23e91fe7bfdd;hp=1dfd9207a7a767f7b9f373f90206aa1c4b07febe;hb=1602530f716ba1d425a0667b897182b99c374823;hpb=3627c2c0f2fe8fe04816703c5fc6dad9c96fb0a6 diff --git a/ginac/polynomial/mgcd.cpp b/ginac/polynomial/mgcd.cpp index 1dfd9207..b0c1b70a 100644 --- a/ginac/polynomial/mgcd.cpp +++ b/ginac/polynomial/mgcd.cpp @@ -1,14 +1,36 @@ +/** @file mgcd.cpp + * + * Chinese remainder algorithm. */ + +/* + * GiNaC Copyright (C) 1999-2009 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 #include "pgcd.h" #include "collect_vargs.h" #include "primes_factory.h" #include "divide_in_z_p.h" #include "poly_cra.h" -namespace GiNaC -{ +#include + +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 -