X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fflags.h;h=8ac295731b5253b55929e443c1c3d162a809aade;hp=39a2113a12fbcb4f87db0afe779222be6fea3a28;hb=89d5356b4aa33cb4481575f9453f36c3404b015b;hpb=a58e540b7d534d64c1c87cc253b3cf40bf58df06 diff --git a/ginac/flags.h b/ginac/flags.h index 39a2113a..8ac29573 100644 --- a/ginac/flags.h +++ b/ginac/flags.h @@ -3,7 +3,7 @@ * Collection of all flags used through the GiNaC framework. */ /* - * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany + * 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 @@ -20,8 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GINAC_FLAGS_H__ -#define __GINAC_FLAGS_H__ +#ifndef GINAC_FLAGS_H +#define GINAC_FLAGS_H namespace GiNaC { @@ -39,7 +39,7 @@ public: class has_options { public: enum { - algebraic = 0x0001, ///< enable algebraic matching + algebraic = 0x0001 ///< enable algebraic matching }; }; @@ -204,7 +204,7 @@ public: class info_flags { public: enum { - // answered by class numeric and symbols/constants in particular domains + // answered by class numeric, add, mul and symbols/constants in particular domains numeric, real, rational, @@ -281,6 +281,15 @@ public: }; }; +/** Flags to control the polynomial factorization. */ +class factor_options { +public: + enum { + polynomial = 0x0000, ///< factor only expressions that are polynomials + all = 0x0001 ///< factor all polynomial subexpressions + }; +}; + } // namespace GiNaC -#endif // ndef __GINAC_FLAGS_H__ +#endif // ndef GINAC_FLAGS_H