Deprecated max() in Vector.h.

release/4.3a0
Alex Hagiopol 2016-03-11 14:00:04 -05:00
parent 9baed00516
commit c0fb1abaf0
2 changed files with 1 additions and 12 deletions

View File

@ -219,11 +219,6 @@ Vector abs(const Vector& v) {
return v.cwiseAbs();
}
/* ************************************************************************* */
double max(const Vector &a) {
return a.maxCoeff();
}
/* ************************************************************************* */
// imperative version, pass in x
double houseInPlace(Vector &v) {

View File

@ -250,13 +250,6 @@ GTSAM_EXPORT Vector esqrt(const Vector& v);
*/
GTSAM_EXPORT Vector abs(const Vector& v);
/**
* Return the max element of a vector
* @param a is a vector
* @return max(a)
*/
GTSAM_EXPORT double max(const Vector &a);
/**
* Dot product
*/
@ -337,6 +330,7 @@ GTSAM_EXPORT Vector concatVectors(size_t nrVectors, ...);
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();}
GTSAM_EXPORT inline double max(const Vector &a){return a.maxCoeff();}
#endif
} // namespace gtsam