Regina 7.3 Calculation Engine
Classes | Namespaces | Functions
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. More...
 
Cyclotomic regina::operator* (Cyclotomic elt, const Rational &scalar)
 Multiplies the given field element by the given rational. More...
 
Cyclotomic regina::operator* (const Rational &scalar, Cyclotomic elt)
 Multiplies the given field element by the given rational. More...
 
Cyclotomic regina::operator/ (Cyclotomic elt, const Rational &scalar)
 Divides the given field element by the given rational. More...
 
Cyclotomic regina::operator+ (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Adds the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator+ (Cyclotomic &&lhs, const Cyclotomic &rhs)
 Adds the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator+ (const Cyclotomic &lhs, Cyclotomic &&rhs)
 Adds the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator+ (Cyclotomic &&lhs, Cyclotomic &&rhs)
 Adds the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator- (Cyclotomic arg)
 Returns the negative of the given field element. More...
 
Cyclotomic regina::operator- (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Subtracts the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator- (Cyclotomic &&lhs, const Cyclotomic &rhs)
 Subtracts the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator- (const Cyclotomic &lhs, Cyclotomic &&rhs)
 Subtracts the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator- (Cyclotomic &&lhs, Cyclotomic &&rhs)
 Subtracts the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator* (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Multiplies the two given cyclotomic field elements. More...
 
Cyclotomic regina::operator/ (const Cyclotomic &lhs, const Cyclotomic &rhs)
 Divides the two given cyclotomic field elements. More...
 

Detailed Description

Implements exact arithmetic in cyclotomic fields.


Copyright © 1999-2023, The Regina development team
This software is released under the GNU General Public License, with some additional permissions; see the source code for details.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@maths.uq.edu.au).