Deprecated sum() in Vector.h

release/4.3a0
Alex Hagiopol 2016-03-11 13:47:25 -05:00
parent b3dfb6d978
commit 9baed00516
2 changed files with 1 additions and 13 deletions

View File

@ -204,11 +204,6 @@ Vector ediv_(const Vector &a, const Vector &b) {
return c;
}
/* ************************************************************************* */
double sum(const Vector &a) {
return a.sum();
}
/* ************************************************************************* */
double norm_2(const Vector& v) {
return v.norm();

View File

@ -228,13 +228,6 @@ GTSAM_EXPORT Vector ediv(const Vector &a, const Vector &b);
*/
GTSAM_EXPORT Vector ediv_(const Vector &a, const Vector &b);
/**
* sum vector elements
* @param a vector
* @return sum_i a(i)
*/
GTSAM_EXPORT double sum(const Vector &a);
/**
* Calculates L2 norm for a vector
* modeled after boost.ublas for compatibility
@ -343,9 +336,9 @@ GTSAM_EXPORT Vector concatVectors(size_t nrVectors, ...);
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4
GTSAM_EXPORT inline Vector emul(const Vector &a, const Vector &b) {assert (b.size()==a.size()); return a.cwiseProduct(b);}
GTSAM_EXPORT inline Vector reciprocal(const Vector &a) {return a.array().inverse();}
GTSAM_EXPORT inline double sum(const Vector &a){return a.sum();}
#endif
} // namespace gtsam
#include <boost/serialization/nvp.hpp>