X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcolor.cpp;h=1fb8e97d40ef2fcb92764cb564d90da10ba9a7c5;hp=fc66b544e5ee7ae775c8a28884a2e0e29b9b022a;hb=488cad4c124885230154720041bd51fa4d983a8b;hpb=1ed8f877ea0ca066c276d5bea08f2e775559aa81 diff --git a/ginac/color.cpp b/ginac/color.cpp index fc66b544..1fb8e97d 100644 --- a/ginac/color.cpp +++ b/ginac/color.cpp @@ -39,10 +39,22 @@ namespace GiNaC { GINAC_IMPLEMENT_REGISTERED_CLASS(color, indexed) -GINAC_IMPLEMENT_REGISTERED_CLASS(su3one, tensor) -GINAC_IMPLEMENT_REGISTERED_CLASS(su3t, tensor) -GINAC_IMPLEMENT_REGISTERED_CLASS(su3f, tensor) -GINAC_IMPLEMENT_REGISTERED_CLASS(su3d, tensor) + +GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(su3one, tensor, + print_func(&su3one::do_print). + print_func(&su3one::do_print_latex)) + +GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(su3t, tensor, + print_func(&su3t::do_print). + print_func(&su3t::do_print)) + +GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(su3f, tensor, + print_func(&su3f::do_print). + print_func(&su3f::do_print)) + +GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(su3d, tensor, + print_func(&su3d::do_print). + print_func(&su3d::do_print)) ////////// // default constructors