X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fclifford.cpp;h=e66003728b50f856e8a71f748608e1ff6882c595;hp=c76fff234cf57bbbc24b9797c2bc96e1637a0f75;hb=12fefbca9b424cb8e9ae05d83883b96e17c7b96e;hpb=b573b0146341709649f373e0fc5c0d440877ebaf diff --git a/ginac/clifford.cpp b/ginac/clifford.cpp index c76fff23..e6600372 100644 --- a/ginac/clifford.cpp +++ b/ginac/clifford.cpp @@ -46,8 +46,6 @@ GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(clifford, indexed, print_func(&clifford::do_print_dflt). print_func(&clifford::do_print_latex)) -const tinfo_static_t clifford::return_type_tinfo_static[256] = {{}}; - GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(diracone, tensor, print_func(&diracone::do_print). print_func(&diracone::do_print_latex)) @@ -120,6 +118,11 @@ clifford::clifford(unsigned char rl, const ex & metr, int comm_sign, std::auto_p tinfo_key = &clifford::tinfo_static; } +return_type_t clifford::return_type_tinfo() const +{ + return make_return_type_t(representation_label); +} + ////////// // archiving ////////// @@ -811,19 +814,11 @@ ex dirac_slash(const ex & e, const ex & dim, unsigned char rl) return clifford(e, varidx(0, dim), indexed((new minkmetric)->setflag(status_flags::dynallocated), symmetric2(), xi, chi), rl); } -/** Check whether a given tinfo key (as returned by return_type_tinfo() - * is that of a clifford object (with an arbitrary representation label). */ -bool is_clifford_tinfo(tinfo_t ti) -{ - p_int start_loc=(p_int)&clifford::return_type_tinfo_static; - return (p_int)ti>=start_loc && (p_int)ti