sparse-matrix-test.cc File Reference
#include "matrix/matrix-lib.h"
#include "util/stl-utils.h"
Include dependency graph for sparse-matrix-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<typename Real >
void UnitTestSparseVectorSum ()
 
template<typename Real >
void UnitTestSparseVectorAddToVec ()
 
template<typename Real >
void UnitTestSparseVectorMax ()
 
template<typename Real >
void UnitTestSparseVectorVecSvec ()
 
template<typename Real >
void UnitTestSparseMatrixSum ()
 
template<typename Real >
void UnitTestSparseMatrixFrobeniusNorm ()
 
template<typename Real >
void UnitTestSparseMatrixAddToMat ()
 
template<typename Real >
void UnitTestSparseMatrixConstructor ()
 
template<typename Real >
void UnitTestSparseMatrixTraceMatSmat ()
 
template<typename Real >
void UnitTestMatrixAddMatSmat ()
 
template<typename Real >
void UnitTestMatrixAddSmatMat ()
 
template<typename Real >
void SparseMatrixUnitTest ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 337 of file sparse-matrix-test.cc.

References KALDI_LOG, and kaldi::SetVerboseLevel().

337  {
339  kaldi::SparseMatrixUnitTest<float>();
340  kaldi::SparseMatrixUnitTest<double>();
341  KALDI_LOG << "Tests succeeded.";
342  return 0;
343 }
void SetVerboseLevel(int32 i)
This should be rarely used, except by programs using Kaldi as library; command-line programs set the ...
Definition: kaldi-error.h:64
#define KALDI_LOG
Definition: kaldi-error.h:153