attempt to fix strange MKL-related error

release/4.3a0
cbeall3 2015-05-15 00:19:39 -04:00
parent fd95ebbef8
commit d8b531aaba
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ bool Gaussian::equals(const Base& expected, double tol) const {
/* ************************************************************************* */
Vector Gaussian::sigmas() const {
// TODO(frank): can this be done faster?
return (thisR().transpose() * thisR()).inverse().diagonal().array().sqrt();
return Vector((thisR().transpose() * thisR()).inverse().diagonal()).cwiseSqrt();
}
/* ************************************************************************* */