using ediv_ where needed
parent
f7d5b517a4
commit
46a65d89df
|
@ -137,8 +137,8 @@ Vector GaussianFactor::unweighted_error(const VectorConfig& c) const {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
Vector GaussianFactor::error_vector(const VectorConfig& c) const {
|
Vector GaussianFactor::error_vector(const VectorConfig& c) const {
|
||||||
if (empty()) return (-b_);
|
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_)
|
FOREACH_PAIR(j, Aj, As_)
|
||||||
Ax += (Aj * x[j]);
|
Ax += (Aj * x[j]);
|
||||||
|
|
||||||
return ediv(Ax,sigmas_);
|
return ediv_(Ax,sigmas_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
VectorConfig GaussianFactor::operator^(const Vector& e) const {
|
VectorConfig GaussianFactor::operator^(const Vector& e) const {
|
||||||
Vector E = ediv(e,sigmas_);
|
Vector E = ediv_(e,sigmas_);
|
||||||
VectorConfig x;
|
VectorConfig x;
|
||||||
// Just iterate over all A matrices and insert Ai^e into VectorConfig
|
// Just iterate over all A matrices and insert Ai^e into VectorConfig
|
||||||
string j; Matrix Aj;
|
string j; Matrix Aj;
|
||||||
|
|
Loading…
Reference in New Issue