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
36 /** Flags to control series expansion. */
37 class series_options {
40 suppress_branchcut = 0x0001
44 /** Switch to control algorithm for determinant computation. */
45 class determinant_algo {
48 automatic, ///< Let the system choose
49 gauss, ///< Gauss elimiation
50 divfree, ///< Division-free elimination
51 laplace, ///< Laplace (or minor) elimination
52 bareiss ///< Bareiss fraction-free elimination
56 /** Switch to control algorithm for linear system solving. */
60 automatic, ///< Let the system choose
61 gauss, ///< Gauss elimiation
62 divfree, ///< Division-free elimination
63 bareiss ///< Bareiss fraction-free elimination
67 /** Flags to store information about the state of an object.
68 * @see basic::flags */
72 dynallocated = 0x0001, ///< Heap-allocated (i.e. created by new if we want to be clever and bypass the stack)
73 evaluated = 0x0002, ///< .eval() has already done its job
74 expanded = 0x0004, ///< .expand() has already done its job
75 hash_calculated = 0x0008 ///< .calchash() has already done its job
79 /** Possible attributes an object can have. */
83 // answered by class numeric
100 // answered by class relation
105 relation_less_or_equal,
107 relation_greater_or_equal,
109 // answered by class symbol
112 // answered by class lst
115 // answered by class exprseq
118 // answered by classes numeric, symbol, add, mul, power
123 crational_polynomial,
127 // answered by class indexed
128 indexed, // class can carry indices
129 has_indices, // object has at least one index
131 // answered by class idx
141 noncommutative_composite
145 /** Strategies how to clean up the function remember cache.
146 * @see remember_table */
147 class remember_strategies {
150 delete_never, ///< Let table grow undefinitely
151 delete_lru, ///< Least recently used
152 delete_lfu, ///< Least frequently used
153 delete_cyclic ///< First (oldest) one in list
159 #endif // ndef __GINAC_FLAGS_H__