A segmentation fault fix.

This commit is contained in:
Dongryeol Lee
2008-05-22 13:48:10 +00:00
parent d9ae0ec7ca
commit 0cd9faa025
2 changed files with 2 additions and 0 deletions
@@ -112,6 +112,7 @@ class CURDecomposition {
Matrix q_factor_mat, r_factor_mat;
success_t flag = QRInit(a_mat, &pivots, &q_factor_mat, &r_factor_mat);
// Check to make sure that QR decomposition has succeeded.
DEBUG_ASSERT(flag);
// Compute the Frobenius norm of each row of R matrix.
@@ -184,6 +184,7 @@ void MatrixFactorizedLocalExpansion<TKernelAux>::TrainBasisFunctions
// Compute the evaluation operator, which is the transpose of the
// evaluation operator computed from the decomposition.
evaluation_operator_ = new Matrix();
la::TransposeInit(evaluation_operator_transposed, evaluation_operator_);
// Allocate space based on the size of the incoming skeleton.