A segmentation fault fix.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user