using ediv_ where needed

release/4.3a0
Frank Dellaert 2009-12-31 10:30:06 +00:00
parent f7d5b517a4
commit 46a65d89df
1 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ Vector GaussianFactor::unweighted_error(const VectorConfig& c) const {
/* ************************************************************************* */
Vector GaussianFactor::error_vector(const VectorConfig& c) const {
if (empty()) return (-b_);
return ediv(unweighted_error(c),sigmas_);
return ediv_(unweighted_error(c),sigmas_);
}
/* ************************************************************************* */
@ -185,12 +185,12 @@ Vector GaussianFactor::operator*(const VectorConfig& x) const {
FOREACH_PAIR(j, Aj, As_)
Ax += (Aj * x[j]);
return ediv(Ax,sigmas_);
return ediv_(Ax,sigmas_);
}
/* ************************************************************************* */
VectorConfig GaussianFactor::operator^(const Vector& e) const {
Vector E = ediv(e,sigmas_);
Vector E = ediv_(e,sigmas_);
VectorConfig x;
// Just iterate over all A matrices and insert Ai^e into VectorConfig
string j; Matrix Aj;