|
@@ -47,11 +47,12 @@ KernelData::KernelData ( const KernelData & src )
|
|
|
cr = src.cr->clone();
|
|
|
}
|
|
|
|
|
|
-KernelData::KernelData ( const Config *conf, const Matrix & kernelMatrix, const string & section )
|
|
|
+KernelData::KernelData ( const Config *conf, const Matrix & kernelMatrix, const string & section, bool updateCholesky )
|
|
|
{
|
|
|
initFromConfig ( conf, section );
|
|
|
this->kernelMatrix = kernelMatrix;
|
|
|
- updateCholeskyFactorization();
|
|
|
+ if ( updateCholesky )
|
|
|
+ updateCholeskyFactorization();
|
|
|
}
|
|
|
|
|
|
KernelData::KernelData ( const Config *conf, const string & section )
|
|
@@ -826,4 +827,4 @@ void KernelData::increase_size_by_k ( const uint & k )
|
|
|
//NOTE Maybe it would be more efficient to work directly with pointers to the memory
|
|
|
choleskyMatrix.resize ( new_Kernel.rows(), new_Kernel.cols() );
|
|
|
choleskyMatrix = new_Kernel;
|
|
|
-}
|
|
|
+}
|