Skip to content

Commit

Permalink
Measurement remover
Browse files Browse the repository at this point in the history
  • Loading branch information
peddie committed Jun 21, 2024
1 parent 544b2de commit 0d152c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/albatross/src/covariance_functions/measurement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ MeasurementOnly<SubCovariance> measurement_only(const SubCovariance &cov) {
return MeasurementOnly<SubCovariance>(cov);
}

template <typename T> T without_measurement(Measurement<T> &&m) {
return m.value;
}
template <typename T> const T &without_measurement(const Measurement<T> &m) {
return m.value;
}

template <typename T> T without_measurement(T &&t) { return t; }
template <typename T> const T &without_measurement(const T &t) { return t; }

} // namespace albatross

#endif /* INCLUDE_ALBATROSS_SRC_COVARIANCE_FUNCTIONS_MEASUREMENT_HPP_ */

0 comments on commit 0d152c3

Please sign in to comment.