X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fcolor.cpp;h=1fb8e97d40ef2fcb92764cb564d90da10ba9a7c5;hb=66917580f3e523feb4e492f38912735b3ce0dc97;hp=fc66b544e5ee7ae775c8a28884a2e0e29b9b022a;hpb=68fdf425abf14d016d5f95ee7b9d06a19a3c5926;p=ginac.git 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