X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fncmul.h;h=f8ba628453388ec1ebe2b30344653ef735503da0;hp=361deff62434470a8368ad708fd6f822d2130d2c;hb=ee1af48a44dbe1e3b743c3683cd3601deb7ce0ed;hpb=0cf43f3096cbcfc7472ff9c8927c6eb74f2eeb8c diff --git a/ginac/ncmul.h b/ginac/ncmul.h index 361deff6..f8ba6284 100644 --- a/ginac/ncmul.h +++ b/ginac/ncmul.h @@ -3,7 +3,7 @@ * Interface to GiNaC's non-commutative products of expressions. */ /* - * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -51,7 +51,7 @@ public: ncmul(const exvector & v, bool discardable=false); ncmul(exvector * vp); // vp will be deleted - // functions overriding virtual functions from bases classes + // functions overriding virtual functions from base classes public: void print(const print_context & c, unsigned level = 0) const; unsigned precedence(void) const {return 50;} @@ -89,13 +89,6 @@ ex simplified_ncmul(const exvector & v); // utility functions -/** Return the ncmul object handled by an ex. - * This is unsafe: you need to check the type first. */ -inline const ncmul &ex_to_ncmul(const ex &e) -{ - return static_cast (*e.bp); -} - /** Specialization of is_exactly_a(obj) for ncmul objects. */ template<> inline bool is_exactly_a(const basic & obj) {