Commit 7248f460 authored by Dan Povey's avatar Dan Povey
Browse files

Bug fix in composing transform.s

git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/discrim@470 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent ec10007a
......@@ -143,7 +143,7 @@ bool ComposeTransforms(const Matrix<BaseFloat> &a, const Matrix<BaseFloat> &b,
Matrix<BaseFloat> b_ext(b.NumRows()+1, b.NumCols());
SubMatrix<BaseFloat> b_part(b_ext, 0, b.NumRows(), 0, b.NumCols());
b_part.CopyFromMat(b);
b_part(b.NumRows(), b.NumCols()-1) = 1.0; // so the last row is 0 0 0 0 ... 0 1
b_ext(b.NumRows(), b.NumCols()-1) = 1.0; // so the last row is 0 0 0 0 ... 0 1
c->Resize(a.NumRows(), b.NumCols());
c->AddMatMat(1.0, a, kNoTrans, b_ext, kNoTrans, 0.0); // c = a * b_ext.
} else { // extend b by 1 row and column with all zeros except a 1 on diagonal.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment