Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
Spinor.hh
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace cadabra {
7
8 class Spinor : public ImplicitIndex, virtual public property {
9 public:
10 Spinor();
11 virtual ~Spinor() {};
12 virtual std::string name() const override;
13 // virtual void display(std::ostream&) const;
14 virtual bool parse(Kernel&, keyval_t& keyvals) override;
15
17 bool weyl;
18 enum Chirality { positive, negative } chirality; // only in combination with weyl
20 };
21
22 }
Definition ImplicitIndex.hh:8
Definition Kernel.hh:15
Definition Spinor.hh:8
enum cadabra::Spinor::Chirality chirality
bool majorana
Definition Spinor.hh:19
Spinor()
Definition Spinor.cc:8
virtual std::string name() const override
Definition Spinor.cc:13
virtual ~Spinor()
Definition Spinor.hh:11
Chirality
Definition Spinor.hh:18
@ positive
Definition Spinor.hh:18
@ negative
Definition Spinor.hh:18
virtual bool parse(Kernel &, keyval_t &keyvals) override
Definition Spinor.cc:18
int dimension
Definition Spinor.hh:16
bool weyl
Definition Spinor.hh:17
Arguments to properties get parsed into a keyval_t structure.
Definition Props.hh:68
Base class for all properties, handling argument parsing and defining the interface.
Definition Props.hh:127
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83