#include <compressed-transform-stats.h>
Public Member Functions | |
CompressedAffineXformStats () | |
CompressedAffineXformStats (const AffineXformStats &input) | |
void | CopyFromAffineXformStats (const AffineXformStats &input) |
void | CopyToAffineXformStats (AffineXformStats *output) const |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
Static Private Member Functions | |
static void | PrepareOneG (const SpMatrix< double > &Gi, double beta, SubVector< double > *linearized) |
static void | ExtractOneG (const SubVector< double > &linearized, double beta, SpMatrix< double > *Gi) |
Private Attributes | |
float | beta_ |
Matrix< float > | K_ |
CompressedMatrix | G_ |
Definition at line 44 of file compressed-transform-stats.h.
|
inline |
Definition at line 46 of file compressed-transform-stats.h.
|
inline |
Definition at line 47 of file compressed-transform-stats.h.
References CompressedAffineXformStats::CopyFromAffineXformStats(), CompressedAffineXformStats::CopyToAffineXformStats(), CompressedAffineXformStats::Read(), and CompressedAffineXformStats::Write().
void CopyFromAffineXformStats | ( | const AffineXformStats & | input | ) |
Definition at line 28 of file compressed-transform-stats.cc.
References VectorBase< Real >::AddVec(), AffineXformStats::beta_, CompressedAffineXformStats::beta_, CompressedMatrix::CopyFromMat(), MatrixBase< Real >::CopyFromMat(), VectorBase< Real >::CopyRowFromSp(), AffineXformStats::Dim(), CompressedAffineXformStats::ExtractOneG(), AffineXformStats::G_, CompressedAffineXformStats::G_, rnnlm::i, AffineXformStats::K_, CompressedAffineXformStats::K_, KALDI_ASSERT, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), CompressedAffineXformStats::PrepareOneG(), and Matrix< Real >::Resize().
Referenced by CompressedAffineXformStats::CompressedAffineXformStats().
void CopyToAffineXformStats | ( | AffineXformStats * | output | ) | const |
Definition at line 89 of file compressed-transform-stats.cc.
References AffineXformStats::beta_, CompressedAffineXformStats::beta_, MatrixBase< Real >::CopyFromMat(), CompressedMatrix::CopyToMat(), AffineXformStats::Dim(), CompressedAffineXformStats::ExtractOneG(), AffineXformStats::G_, CompressedAffineXformStats::G_, rnnlm::i, AffineXformStats::Init(), AffineXformStats::K_, CompressedAffineXformStats::K_, CompressedMatrix::NumCols(), MatrixBase< Real >::NumRows(), and CompressedMatrix::NumRows().
Referenced by CompressedAffineXformStats::CompressedAffineXformStats().
|
staticprivate |
Definition at line 147 of file compressed-transform-stats.cc.
References SpMatrix< Real >::AddTp2(), PackedMatrix< Real >::CopyFromVec(), KALDI_ASSERT, kaldi::kNoTrans, PackedMatrix< Real >::NumRows(), and VectorBase< Real >::Range().
Referenced by CompressedAffineXformStats::CopyFromAffineXformStats(), and CompressedAffineXformStats::CopyToAffineXformStats().
|
staticprivate |
Definition at line 128 of file compressed-transform-stats.cc.
References TpMatrix< Real >::Cholesky(), KALDI_ASSERT, PackedMatrix< Real >::NumRows(), PackedMatrix< Real >::Scale(), and SpMatrix< Real >::Trace().
Referenced by CompressedAffineXformStats::CopyFromAffineXformStats().
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 118 of file compressed-transform-stats.cc.
References CompressedAffineXformStats::beta_, kaldi::ExpectToken(), CompressedAffineXformStats::G_, CompressedAffineXformStats::K_, CompressedMatrix::Read(), Matrix< Real >::Read(), and kaldi::ReadBasicType().
Referenced by CompressedAffineXformStats::CompressedAffineXformStats().
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 110 of file compressed-transform-stats.cc.
References CompressedAffineXformStats::beta_, CompressedAffineXformStats::G_, CompressedAffineXformStats::K_, CompressedMatrix::Write(), MatrixBase< Real >::Write(), kaldi::WriteBasicType(), and kaldi::WriteToken().
Referenced by CompressedAffineXformStats::CompressedAffineXformStats().
|
private |
Definition at line 62 of file compressed-transform-stats.h.
Referenced by CompressedAffineXformStats::CopyFromAffineXformStats(), CompressedAffineXformStats::CopyToAffineXformStats(), CompressedAffineXformStats::Read(), and CompressedAffineXformStats::Write().
|
private |
Definition at line 64 of file compressed-transform-stats.h.
Referenced by CompressedAffineXformStats::CopyFromAffineXformStats(), CompressedAffineXformStats::CopyToAffineXformStats(), CompressedAffineXformStats::Read(), and CompressedAffineXformStats::Write().
Definition at line 63 of file compressed-transform-stats.h.
Referenced by CompressedAffineXformStats::CopyFromAffineXformStats(), CompressedAffineXformStats::CopyToAffineXformStats(), CompressedAffineXformStats::Read(), and CompressedAffineXformStats::Write().