+/** This class represents an antisymmetric spinor metric tensor which
+ * can be used to raise/lower indices of 2-component Weyl spinors. If
+ * indexed, it must have exactly two indices of the same type which
+ * must be of class spinidx or a subclass and have dimension 2. */
+class spinmetric : public tensmetric
+{
+ GINAC_DECLARE_REGISTERED_CLASS(spinmetric, tensmetric)
+
+ // functions overriding virtual functions from base classes
+public:
+ ex eval_indexed(const basic & i) const;
+ bool contract_with(exvector::iterator self, exvector::iterator other, exvector & v) const;
+
+ // non-virtual functions in this class
+protected:
+ void do_print(const print_context & c, unsigned level) const;
+ void do_print_latex(const print_latex & c, unsigned level) const;
+};
+
+