Regina 7.4 Calculation Engine
matrix2.h File Reference

Deals with 2x2 integer matrices. More...

#include <array>
#include <iostream>
#include "regina-core.h"
#include "maths/ring.h"

Classes

class  regina::Matrix2
 Represents a 2-by-2 integer matrix. More...
 

Namespaces

namespace  regina
 Contains the entire Regina calculation engine.
 

Functions

void regina::swap (Matrix2 &a, Matrix2 &b) noexcept
 Swaps the contents of the two given matrices.
 
std::ostream & regina::operator<< (std::ostream &out, const Matrix2 &mat)
 Writes the given matrix to the given output stream.
 
std::strong_ordering regina::simplerThreeWay (const Matrix2 &m1, const Matrix2 &m2)
 Compare two matrices to determine which is more aesthetically pleasing.
 
bool regina::simpler (const Matrix2 &m1, const Matrix2 &m2)
 Deprecated routine that determines whether the first given matrix is more aesthetically pleasing than the second.
 
std::strong_ordering regina::simplerThreeWay (const Matrix2 &pair1first, const Matrix2 &pair1second, const Matrix2 &pair2first, const Matrix2 &pair2second)
 Compares two ordered pairs of matrices to determine which pair is more aesthetically pleasing.
 
bool regina::simpler (const Matrix2 &pair1first, const Matrix2 &pair1second, const Matrix2 &pair2first, const Matrix2 &pair2second)
 Deprecated routine that determines whether the first given pair of matrices is more aesthetically pleasing than the second pair.
 

Detailed Description

Deals with 2x2 integer matrices.