Skip to content

Commit

Permalink
Update vectors.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 1, 2024
1 parent 305be12 commit bb06d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ template <size_t S1, size_t S2>
(vec_a[0] * vec_b[1]) - (vec_b[0] * vec_a[1])};
}

[[nodiscard]] constexpr auto vec_scale(const std::array<double, 3> vec, const double scalefactor) {
[[nodiscard]] constexpr auto vec_scale(const std::array<double, 3> &vec, const double scalefactor) {
return std::array<double, 3>{vec[0] * scalefactor, vec[1] * scalefactor, vec[2] * scalefactor};
}

Expand Down Expand Up @@ -294,8 +294,8 @@ constexpr auto move_pkt_withtime(Packet &pkt, const double distance) -> double {
}

// Routine to transform the Stokes Parameters from RF to CMF
constexpr auto frame_transform(const std::array<double, 3> n_rf, double *Q, double *U,
const std::array<double, 3> v) -> std::array<double, 3> {
constexpr auto frame_transform(const std::array<double, 3> &n_rf, double *Q, double *U,
const std::array<double, 3> &v) -> std::array<double, 3> {
// Meridian frame in the RF
const auto [ref1_rf, ref2_rf] = meridian(n_rf);

Expand Down

0 comments on commit bb06d46

Please sign in to comment.