Skip to content

Commit

Permalink
Ostream support for Measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
peddie committed Jun 21, 2024
1 parent bf2d26f commit 3ab85a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/albatross/src/covariance_functions/measurement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ template <typename X> struct Measurement {
X value;
};

template <typename X>
std::ostream &operator<<(std::ostream &os, const Measurement<X> &m) {
return os << "Meas[" << m.value << "]";
}

// A simple helper function which aids the compiler with type deduction.
template <typename FeatureType>
Measurement<FeatureType> as_measurement(const FeatureType &f) {
Expand Down

0 comments on commit 3ab85a3

Please sign in to comment.