Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Sep 5, 2025

Fixes #3751

std::midpoint(a.time_since_epoch(), b.time_since_epoch())};
} else if constexpr (std::is_same_v<std::decay_t<decltype(a)>,
Eigen::Vector3d>) {
return (a + b) / 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use std::midpoint on the elements instead? This function is supposed to guarantee that there is no overflow.

@jokasimr jokasimr merged commit 9010c13 into main Sep 5, 2025
4 checks passed
@jokasimr jokasimr deleted the midpoint-for-vec branch September 5, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sc.midpoints does not operate on vector-valued data

3 participants