sp-matrix-inl.h
Go to the documentation of this file.
1 // matrix/sp-matrix-inl.h
2 
3 // Copyright 2009-2011 Ondrej Glembek; Microsoft Corporation; Haihua Xu
4 
5 // See ../../COPYING for clarification regarding multiple authors
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 
11 // http://www.apache.org/licenses/LICENSE-2.0
12 
13 // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15 // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16 // MERCHANTABLITY OR NON-INFRINGEMENT.
17 // See the Apache 2 License for the specific language governing permissions and
18 // limitations under the License.
19 
20 #ifndef KALDI_MATRIX_SP_MATRIX_INL_H_
21 #define KALDI_MATRIX_SP_MATRIX_INL_H_
22 
23 #include "matrix/tp-matrix.h"
24 
25 namespace kaldi {
26 
27 // All the lines in this file seem to be declaring template specializations.
28 // These tell the compiler that we'll implement the templated function
29 // separately for the different template arguments (float, double).
30 
31 template<>
32 double SolveQuadraticProblem(const SpMatrix<double> &H, const VectorBase<double> &g,
33  const SolverOptions &opts, VectorBase<double> *x);
34 
35 template<>
36 float SolveQuadraticProblem(const SpMatrix<float> &H, const VectorBase<float> &g,
37  const SolverOptions &opts, VectorBase<float> *x);
38 
39 } // namespace kaldi
40 
41 
42 #endif // KALDI_MATRIX_SP_MATRIX_INL_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
double SolveQuadraticProblem(const SpMatrix< double > &H, const VectorBase< double > &g, const SolverOptions &opts, VectorBase< double > *x)
Definition: sp-matrix.cc:635