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__
26 #ifndef NO_NAMESPACE_GINAC
28 #endif // ndef NO_NAMESPACE_GINAC
30 class expand_options {
33 expand_trigonometric = 0x0001
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 stato of an object. */
72 dynallocated = 0x0001, //! Heap-allocated (i.e. created by new)
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
134 // answered by class coloridx
137 // answered by class lorentzidx
147 noncommutative_composite
160 /** Strategies how to clean up the function remember cache.
161 * @see remember_table */
162 class remember_strategies {
165 delete_never, //! Let table grow undefinitely, not recommmended, but currently default
166 delete_lru, //! Least recently used
167 delete_lfu, //! Least frequently used
168 delete_cyclic //! First (oldest) one in list
172 #ifndef NO_NAMESPACE_GINAC
174 #endif // ndef NO_NAMESPACE_GINAC
176 #endif // ndef __GINAC_FLAGS_H__