SyFi 0.3
|
00001 // Copyright (C) 2006-2009 Kent-Andre Mardal and Simula Research Laboratory. 00002 // Licensed under the GNU GPL Version 2, or (at your option) any later version. 00003 00004 #ifndef UTILITIES_IS_INCLUDED 00005 #define UTILITIES_IS_INCLUDED 00006 00007 #include <string> 00008 00009 #include <ginac/ginac.h> 00010 00011 #include "containers.h" 00012 00013 namespace SyFi 00014 { 00015 00016 // dirac delta function 00017 int dirac(unsigned int i, unsigned int j); 00018 00019 // string utilities 00020 std::string int2string(int i); 00021 00022 std::string istr(const std::string & a, int b); 00023 00024 std::string istr(const std::string & a, int b, int c); 00025 00026 std::string lst2string(GiNaC::lst& l); 00027 //std::string lst2string(GiNaC::exvector& v); 00028 00029 //GiNaC::lst compute_functions(GiNaC::lst& equations, GiNaC::lst& variables, GiNaC::lst& space); 00030 00031 // print functions 00032 #ifndef SWIG 00033 void print(GiNaC::exvector& v); 00034 void print(GiNaC::lst& l); 00035 void print(GiNaC::exmap m); 00036 void print(ex_int_map m); 00037 void print(std::map<std::pair<unsigned int,unsigned int>, GiNaC::ex> & A); 00038 #endif 00039 00040 } // namespace SyFi 00041 #endif