Regina 7.4 Calculation Engine
cyclotomic.h File Reference

Implements exact arithmetic in cyclotomic fields. More...

#include "regina-core.h"
#include "maths/polynomial.h"
#include "maths/rational.h"
#include <complex>

Classes

class  regina::Cyclotomic
 Represents an element of a cyclotomic field. More...
 

Namespaces

namespace  regina
 Contains the entire Regina calculation engine.
 

Functions

void regina::swap (Cyclotomic &a, Cyclotomic &b) noexcept
 Swaps the contents of the given field elements.
 
Cyclotomic regina::operator* (Cyclotomic elt, const Rational &scalar)
 Multiplies the given field element by the given rational.
 
Cyclotomic regina::operator* (const Rational &scalar, Cyclotomic elt)
 Multiplies the given field element by the given rational.
 
Cyclotomic regina::operator/ (Cyclotomic elt, const Rational &scalar)
 Divides the given field element by the given rational.
 
Cyclotomic regina::operator+ (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Adds the two given cyclotomic field elements.
 
Cyclotomic regina::operator+ (Cyclotomic &&lhs, const Cyclotomic &rhs)
 Adds the two given cyclotomic field elements.
 
Cyclotomic regina::operator+ (const Cyclotomic &lhs, Cyclotomic &&rhs)
 Adds the two given cyclotomic field elements.
 
Cyclotomic regina::operator+ (Cyclotomic &&lhs, Cyclotomic &&rhs)
 Adds the two given cyclotomic field elements.
 
Cyclotomic regina::operator- (Cyclotomic arg)
 Returns the negative of the given field element.
 
Cyclotomic regina::operator- (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Subtracts the two given cyclotomic field elements.
 
Cyclotomic regina::operator- (Cyclotomic &&lhs, const Cyclotomic &rhs)
 Subtracts the two given cyclotomic field elements.
 
Cyclotomic regina::operator- (const Cyclotomic &lhs, Cyclotomic &&rhs)
 Subtracts the two given cyclotomic field elements.
 
Cyclotomic regina::operator- (Cyclotomic &&lhs, Cyclotomic &&rhs)
 Subtracts the two given cyclotomic field elements.
 
Cyclotomic regina::operator* (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Multiplies the two given cyclotomic field elements.
 
Cyclotomic regina::operator/ (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Divides the two given cyclotomic field elements.
 

Detailed Description

Implements exact arithmetic in cyclotomic fields.