#include <algorithm>
#include <vector>
#include "matrix/packed-matrix.h"
#include "matrix/sp-matrix-inl.h"
Go to the source code of this file.
Classes | |
class | SpMatrix< Real > |
Packed symetric matrix class. More... | |
class | SpMatrix< Real > |
Packed symetric matrix class. More... | |
struct | SolverOptions |
This class describes the options for maximizing various quadratic objective functions. More... | |
Namespaces | |
kaldi | |
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference: | |
Functions | |
float | TraceSpSp (const SpMatrix< float > &A, const SpMatrix< float > &B) |
Returns tr(A B). More... | |
double | TraceSpSp (const SpMatrix< double > &A, const SpMatrix< double > &B) |
template<typename Real > | |
bool | ApproxEqual (const SpMatrix< Real > &A, const SpMatrix< Real > &B, Real tol=0.01) |
template<typename Real > | |
void | AssertEqual (const SpMatrix< Real > &A, const SpMatrix< Real > &B, Real tol=0.01) |
template<typename Real , typename OtherReal > | |
Real | TraceSpSp (const SpMatrix< Real > &A, const SpMatrix< OtherReal > &B) |
Returns tr(A B). More... | |
template<typename Real > | |
Real | TraceSpSpLower (const SpMatrix< Real > &A, const SpMatrix< Real > &B) |
template<typename Real > | |
Real | TraceSpMat (const SpMatrix< Real > &A, const MatrixBase< Real > &B) |
Returns tr(A B). More... | |
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<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<typename Real > | |
Real | VecSpVec (const VectorBase< Real > &v1, const SpMatrix< Real > &M, const VectorBase< Real > &v2) |
Computes v1^T * M * v2. More... | |
template<typename Real > | |
Real | SolveQuadraticProblem (const SpMatrix< Real > &H, const VectorBase< Real > &g, const SolverOptions &opts, VectorBase< Real > *x) |
Maximizes the auxiliary function
using a numerically stable method. More... | |
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... | |