Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
math_nt_test.cc File Reference

Tests for Number Theory and Modular Arithmetic features. More...

#include <gtest/gtest.h>
#include <chrono>
#include <cstdlib>
#include <random>
#include <algorithm>
#include <numeric>
#include <modular_arithmetic.H>
#include <primality.H>
#include <pollard_rho.H>
#include <modular_combinatorics.H>
#include <modular_linalg.H>
#include <tpl_dynMat.H>
Include dependency graph for math_nt_test.cc:

Go to the source code of this file.

Functions

 TEST (MathNT, ModMulAndExp)
 
 TEST (MathNT, ExtGCDAndInv)
 
 TEST (MathNT, CRT)
 
 TEST (MathNT, MillerRabin)
 
 TEST (MathNT, PollardRho)
 
 TEST (MathNT, PerformanceRegression)
 
 TEST (MathNT, ModularCombinatorics)
 
 TEST (MathNT, ModularLinalg)
 
 TEST (MathNT, ModularSparseMatrix)
 
 TEST (MathNT, ModularSparseMatrixRowSwap)
 
 TEST (MathNT, ModularSparseMatrixSingular)
 

Detailed Description

Tests for Number Theory and Modular Arithmetic features.

Definition in file math_nt_test.cc.

Function Documentation

◆ TEST() [1/11]

TEST ( MathNT  ,
CRT   
)

Definition at line 83 of file math_nt_test.cc.

References Aleph::crt(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST() [2/11]

TEST ( MathNT  ,
ExtGCDAndInv   
)

Definition at line 72 of file math_nt_test.cc.

References Aleph::divide_and_conquer_partition_dp(), Aleph::mod_inv(), and y.

◆ TEST() [3/11]

TEST ( MathNT  ,
MillerRabin   
)

◆ TEST() [4/11]

TEST ( MathNT  ,
ModMulAndExp   
)

◆ TEST() [5/11]

TEST ( MathNT  ,
ModularCombinatorics   
)

Definition at line 176 of file math_nt_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [6/11]

◆ TEST() [7/11]

◆ TEST() [8/11]

TEST ( MathNT  ,
ModularSparseMatrixRowSwap   
)

◆ TEST() [9/11]

TEST ( MathNT  ,
ModularSparseMatrixSingular   
)

◆ TEST() [10/11]

TEST ( MathNT  ,
PerformanceRegression   
)

◆ TEST() [11/11]

TEST ( MathNT  ,
PollardRho   
)