Class manhattan_dist
Defined in File manhattan_dist.hpp
Inheritance Relationships
Base Type
public rcppsw::spatial::measurement< int, struct manhattan_dist_tag >
(Template Class measurement)
Class Documentation
-
class manhattan_dist : public rcppsw::spatial::measurement<int, struct manhattan_dist_tag>
Specifies a distance between two points in manhattan distance, and as such is always positive.
Public Functions
-
inline explicit manhattan_dist(const int &v, bool check_psd = true)
-
manhattan_dist(const manhattan_dist&) = default
-
~manhattan_dist(void) override = default
-
inline manhattan_dist operator*(const manhattan_dist &rhs) const
-
inline manhattan_dist operator*(int rhs) const
-
inline manhattan_dist operator+(const manhattan_dist &rhs) const
-
inline manhattan_dist operator+(int rhs) const
-
inline manhattan_dist &operator+=(const manhattan_dist &rhs)
-
inline manhattan_dist operator-(const manhattan_dist &rhs) const
-
inline manhattan_dist operator-(int rhs) const
-
inline manhattan_dist &operator-=(int rhs)
-
inline manhattan_dist operator/(const manhattan_dist &rhs) const
-
inline manhattan_dist operator/(int rhs) const
-
inline manhattan_dist &operator=(const manhattan_dist &rhs)
Public Static Functions
-
static manhattan_dist make(const int &value)
Create a manhattan_dist from a numeric value, making it positive if necessary. This incurs a higher runtime cost, and so is a separate function from the constructor, which assumes the
value
to be positive semi-definite.
-
inline explicit manhattan_dist(const int &v, bool check_psd = true)