- int compare_same_type(basic const & other) const;
- ex simplify_ncmul(exvector const & v) const;
- unsigned calchash(void) const;
-
- // new virtual functions which can be overridden by derived classes
- // none
-
- // non-virtual functions in this class
+ ex simplify_ncmul(const exvector & v) const;
+ ex thisexprseq(const exvector & v) const;
+ ex thisexprseq(exvector * vp) const;
+ unsigned return_type(void) const { return return_types::noncommutative; }
+ unsigned return_type_tinfo(void) const { return TINFO_clifford; }
+};
+
+
+/** This class represents the Clifford algebra unity element. */
+class diracone : public tensor
+{
+ GINAC_DECLARE_REGISTERED_CLASS(diracone, tensor)
+
+ // functions overriding virtual functions from bases classes