-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlink.h
More file actions
23 lines (23 loc) · 861 Bytes
/
link.h
File metadata and controls
23 lines (23 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Link {
private:
double a[4]; // 4-vector representation
public:
Link(); // constructor
Link(double* initA);
Link(const Link& U2); // copy constructor
Link(const Link&& U2); // move constructor
Link inv() const; // multiplicative inverse
double det() const; // determinant of representation
double tr() const; // trace of representation
Link scale(const double s); // returns scaled version of link variable
void setA(const double* newA); // setter function
void getA(double* targetA) const; // getter function
Link operator=(const Link& U2);
Link operator=(const Link&& U2);
Link operator+=(const Link& U2);
Link operator+(const Link& U2) const;
Link operator-=(const Link& U2);
Link operator-(const Link& U2) const;
Link operator*=(const Link& U2);
Link operator*(const Link& U2) const;
};