All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 Relabels neural network egs with the read pdf-id alignments.
 

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

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 }
Relabels neural network egs with the read pdf-id alignments.
Definition: chain.dox:20
void UnitTestDivideRoundingDown()
void UnitTestLogAddSub()
void UnitTestDefines()
void UnitTestRoundUpToNearestPowerOfTwo()
void UnitTestGcdLcm()
void UnitTestAssertFunc()
void UnitTestRand()
void UnitTestFactorize()
void UnitTestApproxEqual()