kaldi-math-test.cc File Reference
#include "base/kaldi-math.h"
#include <limits>
#include "base/timer.h"
Include dependency graph for kaldi-math-test.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

template<class I >
void UnitTestGcdLcmTpl ()
 
void UnitTestRoundUpToNearestPowerOfTwo ()
 
void UnitTestDivideRoundingDown ()
 
void UnitTestGcdLcm ()
 
void UnitTestRand ()
 
void UnitTestLogAddSub ()
 
void UnitTestDefines ()
 
void UnitTestAssertFunc ()
 
template<class I >
void UnitTestFactorizeTpl ()
 
void UnitTestFactorize ()
 
void UnitTestApproxEqual ()
 
template<class Real >
void UnitTestExpSpeed ()
 
template<class Real >
void UnitTestLogSpeed ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 318 of file kaldi-math-test.cc.

References kaldi::UnitTestApproxEqual(), kaldi::UnitTestAssertFunc(), kaldi::UnitTestDefines(), kaldi::UnitTestDivideRoundingDown(), kaldi::UnitTestFactorize(), kaldi::UnitTestGcdLcm(), kaldi::UnitTestLogAddSub(), kaldi::UnitTestRand(), and kaldi::UnitTestRoundUpToNearestPowerOfTwo().

318  {
319  using namespace kaldi;
321  UnitTestGcdLcm();
323  UnitTestDefines();
325  UnitTestRand();
329  UnitTestExpSpeed<float>();
330  UnitTestExpSpeed<double>();
331  UnitTestLogSpeed<float>();
332  UnitTestLogSpeed<double>();
333 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
void UnitTestDivideRoundingDown()
void UnitTestLogAddSub()
void UnitTestDefines()
void UnitTestRoundUpToNearestPowerOfTwo()
void UnitTestGcdLcm()
void UnitTestAssertFunc()
void UnitTestRand()
void UnitTestFactorize()
void UnitTestApproxEqual()