25 #include <queso/CovCond.h>
29 template <
class V,
class M>
30 void CovCond(
double condNumber,
const V & direction, M & covMatrix,
42 V v2(direction,condNumber,1.0);
50 double v1Norm2 = v1.norm2();
51 if (v1[0] >=0) v1[0] += v1Norm2;
52 else v1[0] -= v1Norm2;
53 double v1Norm2Sq = v1.norm2Sq();
GslMatrix leftDiagScaling(const GslVector &vec, const GslMatrix &mat)
GslMatrix matrixProduct(const GslVector &v1, const GslVector &v2)
void CovCond(double condNumber, const V &direction, M &covMatrix, M &precMatrix)