* Collection of all flags used through the GiNaC framework. */
/*
- * GiNaC Copyright (C) 1999-2008 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
* 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 {
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,
};
};
+/** 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