#include <limits>
#include "matrix/sp-matrix.h"
#include "matrix/kaldi-vector.h"
#include "matrix/kaldi-matrix.h"
#include "matrix/matrix-functions.h"
#include "matrix/cblas-wrappers.h"
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 | |
double | TraceSpSp (const SpMatrix< double > &A, const SpMatrix< double > &B) |
float | TraceSpSp (const SpMatrix< float > &A, const SpMatrix< float > &B) |
Returns tr(A B). More... | |
template<typename Real , typename OtherReal > | |
Real | TraceSpSp (const SpMatrix< Real > &A, const SpMatrix< OtherReal > &B) |
Returns tr(A B). More... | |
template float | TraceSpSp< float, double > (const SpMatrix< float > &A, const SpMatrix< double > &B) |
template double | TraceSpSp< double, float > (const SpMatrix< double > &A, const SpMatrix< float > &B) |
template<typename Real > | |
Real | TraceSpMat (const SpMatrix< Real > &A, const MatrixBase< Real > &B) |
Returns tr(A B). More... | |
template float | TraceSpMat (const SpMatrix< float > &A, const MatrixBase< float > &B) |
template double | TraceSpMat (const SpMatrix< double > &A, const MatrixBase< double > &B) |
template<typename Real > | |
Real | TraceMatSpMat (const MatrixBase< Real > &A, MatrixTransposeType transA, const SpMatrix< Real > &B, const MatrixBase< Real > &C, MatrixTransposeType transC) |
Returns tr(A B C) (A and C may be transposed as specified by transA and transC). More... | |
template float | TraceMatSpMat (const MatrixBase< float > &A, MatrixTransposeType transA, const SpMatrix< float > &B, const MatrixBase< float > &C, MatrixTransposeType transC) |
template double | TraceMatSpMat (const MatrixBase< double > &A, MatrixTransposeType transA, const SpMatrix< double > &B, const MatrixBase< double > &C, MatrixTransposeType transC) |
template<typename Real > | |
Real | TraceMatSpMatSp (const MatrixBase< Real > &A, MatrixTransposeType transA, const SpMatrix< Real > &B, const MatrixBase< Real > &C, MatrixTransposeType transC, const SpMatrix< Real > &D) |
Returns tr (A B C D) (A and C may be transposed as specified by transA and transB). More... | |
template float | TraceMatSpMatSp (const MatrixBase< float > &A, MatrixTransposeType transA, const SpMatrix< float > &B, const MatrixBase< float > &C, MatrixTransposeType transC, const SpMatrix< float > &D) |
template double | TraceMatSpMatSp (const MatrixBase< double > &A, MatrixTransposeType transA, const SpMatrix< double > &B, const MatrixBase< double > &C, MatrixTransposeType transC, const SpMatrix< double > &D) |
template<> | |
double | SolveQuadraticProblem (const SpMatrix< double > &H, const VectorBase< double > &g, const SolverOptions &opts, VectorBase< double > *x) |
template<> | |
float | SolveQuadraticProblem (const SpMatrix< float > &H, const VectorBase< float > &g, const SolverOptions &opts, VectorBase< float > *x) |
template<typename Real > | |
Real | SolveQuadraticMatrixProblem (const SpMatrix< Real > &Q, const MatrixBase< Real > &Y, const SpMatrix< Real > &P, const SolverOptions &opts, MatrixBase< Real > *M) |
Maximizes the auxiliary function :
Like a numerically stable version of . More... | |
template<typename Real > | |
Real | SolveDoubleQuadraticMatrixProblem (const MatrixBase< Real > &G, const SpMatrix< Real > &P1, const SpMatrix< Real > &P2, const SpMatrix< Real > &Q1, const SpMatrix< Real > &Q2, const SolverOptions &opts, MatrixBase< Real > *M) |
Maximizes the auxiliary function :
Encountered in matrix update with a prior. More... | |
template<typename Real > | |
Real | VecSpVec (const VectorBase< Real > &v1, const SpMatrix< Real > &M, const VectorBase< Real > &v2) |
Computes v1^T * M * v2. More... | |
template float | VecSpVec (const VectorBase< float > &v1, const SpMatrix< float > &M, const VectorBase< float > &v2) |
template double | VecSpVec (const VectorBase< double > &v1, const SpMatrix< double > &M, const VectorBase< double > &v2) |
template<typename Real > | |
Real | TraceSpSpLower (const SpMatrix< Real > &A, const SpMatrix< Real > &B) |
template double | TraceSpSpLower (const SpMatrix< double > &A, const SpMatrix< double > &B) |
template float | TraceSpSpLower (const SpMatrix< float > &A, const SpMatrix< float > &B) |
template float | SolveQuadraticMatrixProblem (const SpMatrix< float > &Q, const MatrixBase< float > &Y, const SpMatrix< float > &SigmaInv, const SolverOptions &opts, MatrixBase< float > *M) |
template double | SolveQuadraticMatrixProblem (const SpMatrix< double > &Q, const MatrixBase< double > &Y, const SpMatrix< double > &SigmaInv, const SolverOptions &opts, MatrixBase< double > *M) |
template float | SolveDoubleQuadraticMatrixProblem (const MatrixBase< float > &G, const SpMatrix< float > &P1, const SpMatrix< float > &P2, const SpMatrix< float > &Q1, const SpMatrix< float > &Q2, const SolverOptions &opts, MatrixBase< float > *M) |
template double | SolveDoubleQuadraticMatrixProblem (const MatrixBase< double > &G, const SpMatrix< double > &P1, const SpMatrix< double > &P2, const SpMatrix< double > &Q1, const SpMatrix< double > &Q2, const SolverOptions &opts, MatrixBase< double > *M) |