| 25 |
|
|
| 26 |
#include <string> |
#include <string> |
| 27 |
#include <ginac/indexed.h> |
#include <ginac/indexed.h> |
| 28 |
|
#include <ginac/ex.h> |
| 29 |
|
|
| 30 |
|
namespace GiNaC { |
| 31 |
|
|
| 32 |
/** Base class for clifford object */ |
/** Base class for clifford object */ |
| 33 |
class clifford : public indexed |
class clifford : public indexed |
| 84 |
extern const clifford some_clifford; |
extern const clifford some_clifford; |
| 85 |
extern type_info const & typeid_clifford; |
extern type_info const & typeid_clifford; |
| 86 |
|
|
| 87 |
// macros |
// utility functions |
| 88 |
|
inline const clifford &ex_to_clifford(const ex &e) |
| 89 |
|
{ |
| 90 |
|
return static_cast<const clifford &>(*e.bp); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
#define ex_to_clifford(X) static_cast<clifford const &>(*(X).bp) |
} // namespace GiNaC |
| 94 |
|
|
| 95 |
#endif // ndef __GINAC_CLIFFORD_H__ |
#endif // ndef __GINAC_CLIFFORD_H__ |
|
|
|
|
|
|