Skip to content

Commit

Permalink
style: formatting fixed to make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Oct 6, 2023
1 parent 0d66089 commit cb36e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/core/include/mp-units/quantity_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,7 @@ template<QuantitySpec Lhs, detail::QuantityKindSpec Rhs>
return is_same_v<Lhs, std::remove_const_t<decltype(remove_kind(rhs))>>;
}

[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q)
{
return dimensionless / q;
}
[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q) { return dimensionless / q; }


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ QUANTITY_SPEC(attenuation, inverse(distance));
inline constexpr auto extinction = attenuation;
QUANTITY_SPEC(phase_coefficient, phase_angle / path_length);
QUANTITY_SPEC(propagation_coefficient, inverse(length)); // γ = α + iβ where α denotes attenuation
// and β the phase coefficient of a plane wave
// and β the phase coefficient of a plane wave

} // namespace mp_units::isq

0 comments on commit cb36e39

Please sign in to comment.