oILAB
Loading...
Searching...
No Matches
gbLAB::IntegerMath< IntScalarType > Struct Template Reference

#include <IntegerMath.h>

Static Public Member Functions

static IntScalarType positive_modulo (IntScalarType i, IntScalarType n)
 
static IntScalarType sgn (const IntScalarType &a)
 
static IntScalarType gcd (const IntScalarType &a, const IntScalarType &b)
 
template<typename T >
static IntScalarType gcd (const Eigen::MatrixBase< T > &a)
 
static IntScalarType lcm (const IntScalarType &a, const IntScalarType &b)
 
template<typename T >
static IntScalarType lcm (const Eigen::MatrixBase< T > &a)
 
static Eigen::Matrix< IntScalarType, Eigen::Dynamic, Eigen::Dynamic > integerGramSchmidt (const Eigen::Vector< IntScalarType, Eigen::Dynamic > &a)
 
static IntScalarType extended_gcd (IntScalarType a, IntScalarType b, IntScalarType &x, IntScalarType &y)
 
static void solveDiophantine2vars (IntScalarType a, IntScalarType b, IntScalarType c, IntScalarType &x, IntScalarType &y)
 
template<typename T >
static Eigen::Vector< IntScalarType, Eigen::Dynamic > solveBezout (const Eigen::MatrixBase< T > &a)
 
template<typename T >
static Eigen::Matrix< IntScalarType, Eigen::Dynamic, Eigen::Dynamic > ccum (const Eigen::MatrixBase< T > &qin)
 
static std::deque< std::vector< IntScalarType > > comb (const int &n, const int &k)
 

Detailed Description

template<typename IntScalarType>
struct gbLAB::IntegerMath< IntScalarType >

Definition at line 22 of file IntegerMath.h.

Member Function Documentation

◆ ccum()

template<typename IntScalarType >
template<typename T >
static Eigen::Matrix< IntScalarType, Eigen::Dynamic, Eigen::Dynamic > gbLAB::IntegerMath< IntScalarType >::ccum ( const Eigen::MatrixBase< T > &  qin)
inlinestatic

Definition at line 262 of file IntegerMath.h.

◆ comb()

template<typename IntScalarType >
static std::deque< std::vector< IntScalarType > > gbLAB::IntegerMath< IntScalarType >::comb ( const int &  n,
const int &  k 
)
inlinestatic

Definition at line 395 of file IntegerMath.h.

◆ extended_gcd()

template<typename IntScalarType >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::extended_gcd ( IntScalarType  a,
IntScalarType  b,
IntScalarType &  x,
IntScalarType &  y 
)
inlinestatic

Definition at line 186 of file IntegerMath.h.

◆ gcd() [1/2]

template<typename IntScalarType >
template<typename T >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::gcd ( const Eigen::MatrixBase< T > &  a)
inlinestatic

Definition at line 41 of file IntegerMath.h.

◆ gcd() [2/2]

template<typename IntScalarType >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::gcd ( const IntScalarType &  a,
const IntScalarType &  b 
)
inlinestatic

Definition at line 33 of file IntegerMath.h.

◆ integerGramSchmidt()

template<typename IntScalarType >
static Eigen::Matrix< IntScalarType, Eigen::Dynamic, Eigen::Dynamic > gbLAB::IntegerMath< IntScalarType >::integerGramSchmidt ( const Eigen::Vector< IntScalarType, Eigen::Dynamic > &  a)
inlinestatic

Definition at line 127 of file IntegerMath.h.

◆ lcm() [1/2]

template<typename IntScalarType >
template<typename T >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::lcm ( const Eigen::MatrixBase< T > &  a)
inlinestatic

Definition at line 86 of file IntegerMath.h.

◆ lcm() [2/2]

template<typename IntScalarType >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::lcm ( const IntScalarType &  a,
const IntScalarType &  b 
)
inlinestatic

Definition at line 80 of file IntegerMath.h.

◆ positive_modulo()

template<typename IntScalarType >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::positive_modulo ( IntScalarType  i,
IntScalarType  n 
)
inlinestatic

Definition at line 24 of file IntegerMath.h.

◆ sgn()

template<typename IntScalarType >
static IntScalarType gbLAB::IntegerMath< IntScalarType >::sgn ( const IntScalarType &  a)
inlinestatic

Definition at line 28 of file IntegerMath.h.

◆ solveBezout()

template<typename IntScalarType >
template<typename T >
static Eigen::Vector< IntScalarType, Eigen::Dynamic > gbLAB::IntegerMath< IntScalarType >::solveBezout ( const Eigen::MatrixBase< T > &  a)
inlinestatic

Definition at line 227 of file IntegerMath.h.

◆ solveDiophantine2vars()

template<typename IntScalarType >
static void gbLAB::IntegerMath< IntScalarType >::solveDiophantine2vars ( IntScalarType  a,
IntScalarType  b,
IntScalarType  c,
IntScalarType &  x,
IntScalarType &  y 
)
inlinestatic

Definition at line 202 of file IntegerMath.h.


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