3 * Collection of all flags used through the GiNaC framework. */
6 * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __GINAC_FLAGS_H__
24 #define __GINAC_FLAGS_H__
28 class expand_options {
31 expand_trigonometric = 0x0001,
32 expand_indexed = 0x0002,
33 expand_function_args = 0x0004
37 /** Flags to control series expansion. */
38 class series_options {
41 suppress_branchcut = 0x0001
45 /** Switch to control algorithm for determinant computation. */
46 class determinant_algo {
49 automatic, ///< Let the system choose
50 gauss, ///< Gauss elimiation
51 divfree, ///< Division-free elimination
52 laplace, ///< Laplace (or minor) elimination
53 bareiss ///< Bareiss fraction-free elimination
57 /** Switch to control algorithm for linear system solving. */
61 automatic, ///< Let the system choose
62 gauss, ///< Gauss elimiation
63 divfree, ///< Division-free elimination
64 bareiss ///< Bareiss fraction-free elimination
68 /** Flags to store information about the state of an object.
69 * @see basic::flags */
73 dynallocated = 0x0001, ///< Heap-allocated (i.e. created by new if we want to be clever and bypass the stack, @see ex::construct_from_basic() )
74 evaluated = 0x0002, ///< .eval() has already done its job
75 expanded = 0x0004, ///< .expand() has already done its job
76 hash_calculated = 0x0008 ///< .calchash() has already done its job
80 /** Possible attributes an object can have. */
84 // answered by class numeric
101 // answered by class relation
106 relation_less_or_equal,
108 relation_greater_or_equal,
110 // answered by class symbol
113 // answered by class lst
116 // answered by class exprseq
119 // answered by classes numeric, symbol, add, mul, power
124 crational_polynomial,
128 // answered by class indexed
129 indexed, // class can carry indices
130 has_indices, // object has at least one index
132 // answered by class idx
142 noncommutative_composite
146 /** Strategies how to clean up the function remember cache.
147 * @see remember_table */
148 class remember_strategies {
151 delete_never, ///< Let table grow undefinitely
152 delete_lru, ///< Least recently used
153 delete_lfu, ///< Least frequently used
154 delete_cyclic ///< First (oldest) one in list
160 #endif // ndef __GINAC_FLAGS_H__