symbol_factory.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef SYMBOL_FACTORY_IS_INCLUDED
00005 #define SYMBOL_FACTORY_IS_INCLUDED
00006
00007 #include <string>
00008
00009 #include <ginac/ginac.h>
00010
00011 namespace SyFi
00012 {
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 void initSyFi(unsigned int nsd);
00033
00034
00035 extern unsigned int nsd;
00036 extern GiNaC::symbol x;
00037 extern GiNaC::symbol y;
00038 extern GiNaC::symbol z;
00039 extern GiNaC::symbol t;
00040 extern GiNaC::lst p;
00041
00042
00043 extern GiNaC::symbol infinity;
00044 extern GiNaC::symbol DUMMY;
00045
00046
00047
00048
00049
00050 bool symbol_exists(const std::string & name);
00051
00052
00053 const GiNaC::symbol & get_symbol(const std::string & name);
00054
00055 const GiNaC::symbol & isymb(const std::string & a, int b);
00056 const GiNaC::symbol & isymb(const std::string & a, int b, int c);
00057
00058 GiNaC::ex get_symbolic_vector(int m, const std::string & basename);
00059
00060 GiNaC::ex get_symbolic_matrix(int m, int n, const std::string & basename);
00061
00062 }
00063 #endif