* Interface to GiNaC's clifford algebra (Dirac gamma) objects. */
/*
- * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2004 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
// internal constructors
clifford(unsigned char rl, const exvector & v, bool discardable = false);
- clifford(unsigned char rl, exvector * vp); // vp will be deleted
+ clifford(unsigned char rl, std::auto_ptr<exvector> vp);
// functions overriding virtual functions from base classes
protected:
ex eval_ncmul(const exvector & v) const;
bool match_same_type(const basic & other) const;
ex thiscontainer(const exvector & v) const;
- ex thiscontainer(exvector * vp) const;
+ ex thiscontainer(std::auto_ptr<exvector> vp) const;
unsigned return_type() const { return return_types::noncommutative; }
unsigned return_type_tinfo() const { return TINFO_clifford + representation_label; }
{
GINAC_DECLARE_REGISTERED_CLASS(diracgamma5, tensor)
+ // functions overriding virtual functions from base classes
+ ex conjugate() const;
+
// non-virtual functions in this class
protected:
void do_print(const print_context & c, unsigned level) const;
{
GINAC_DECLARE_REGISTERED_CLASS(diracgammaL, tensor)
+ // functions overriding virtual functions from base classes
+ ex conjugate() const;
+
// non-virtual functions in this class
protected:
void do_print(const print_context & c, unsigned level) const;
{
GINAC_DECLARE_REGISTERED_CLASS(diracgammaR, tensor)
+ // functions overriding virtual functions from base classes
+ ex conjugate() const;
+
// non-virtual functions in this class
protected:
void do_print(const print_context & c, unsigned level) const;
/** Create a term of the form e_mu * gamma~mu with a unique index mu.
*
+ * @param e Original expression
* @param dim Dimension of index
* @param rl Representation label */
ex dirac_slash(const ex & e, const ex & dim, unsigned char rl = 0);