X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fpolynomial%2Fring_traits.h;h=f1c1f778cf1ef8265959049f50fc1809551b6389;hb=640c8980ed3f00e985ffb4810b3c75a9b8106ba9;hp=540a6bd716e455eb7a084528b0d681ee3c8a08e9;hpb=80b1c3e0ee0e465d56e5c76bef4e52ef2dbc5197;p=ginac.git diff --git a/ginac/polynomial/ring_traits.h b/ginac/polynomial/ring_traits.h index 540a6bd7..f1c1f778 100644 --- a/ginac/polynomial/ring_traits.h +++ b/ginac/polynomial/ring_traits.h @@ -1,10 +1,33 @@ -#ifndef GINAC_RING_TRAITS_HPP -#define GINAC_RING_TRAITS_HPP +/** @file ring_traits.h + * + * Functions for polynomial ring arithmetic. */ + +/* + * GiNaC Copyright (C) 1999-2015 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_RING_TRAITS_H +#define GINAC_RING_TRAITS_H + #include #include -namespace cln -{ +namespace cln { + static inline cln::cl_I div(const cln::cl_I& x, const cln::cl_I& y) { return cln::exquo(x, y); @@ -41,5 +64,4 @@ static inline T the_one(const T& sample) } // namespace cln -#endif // GINAC_RING_TRAITS_HPP - +#endif // GINAC_RING_TRAITS_H