dejavu
Fast probabilistic symmetry detection.
Loading...
Searching...
No Matches
dejavu::big_number Class Reference

Stores big numbers. More...

#include <utility.h>

Public Member Functions

void set (long double set_mantissa, int set_exponent)
 
void multiply (int number)
 
void multiply (big_number number)
 
void multiply (long double other_mantissa, int other_exponent)
 

Public Attributes

long double mantissa = 1.0
 
int exponent = 0
 

Friends

bool operator< (const big_number &l, const big_number &r)
 
bool operator== (const big_number &l, const big_number &r)
 

Detailed Description

Stores big numbers.

A simple class to store big, positive numbers. Consists of a mantissa and a exponent, where the value of the number is mantissa^exponent.

Used to store automorphism group sizes.

Definition at line 138 of file utility.h.

Member Function Documentation

◆ multiply() [1/3]

void dejavu::big_number::multiply ( big_number  number)
inline

Multiply a number to this big_number.

Parameters
numberThe number to multiply.

Definition at line 174 of file utility.h.

◆ multiply() [2/3]

void dejavu::big_number::multiply ( int  number)
inline

Multiply a number to this big_number.

Parameters
numberThe number to multiply.

Definition at line 165 of file utility.h.

◆ multiply() [3/3]

void dejavu::big_number::multiply ( long double  other_mantissa,
int  other_exponent 
)
inline

Multiply a number consisting of a mantissa (other_mantissa) and exponent (other_exponent) to this big_number.

Parameters
other_mantissaMantissa of number to multiply.
other_exponentExponent of number to multiply.

Definition at line 186 of file utility.h.

◆ set()

void dejavu::big_number::set ( long double  set_mantissa,
int  set_exponent 
)
inline

Definition at line 155 of file utility.h.

Friends And Related Symbol Documentation

◆ operator<

bool operator< ( const big_number l,
const big_number r 
)
friend

Definition at line 145 of file utility.h.

◆ operator==

bool operator== ( const big_number l,
const big_number r 
)
friend

Definition at line 150 of file utility.h.

Member Data Documentation

◆ exponent

int dejavu::big_number::exponent = 0

exponent, number is mantissa^exponent

See also
mantissa

Definition at line 142 of file utility.h.

◆ mantissa

long double dejavu::big_number::mantissa = 1.0

mantissa, number is mantissa^exponent

See also
exponent

Definition at line 140 of file utility.h.


The documentation for this class was generated from the following file: