Skip to content
Snippets Groups Projects

Make conjugateComlex and sign constexpr

Merged Simon Praetorius requested to merge feature/math-constexpr into master
1 unresolved thread

This MR marks two simple functions from math.hh as constexpr. The type std::complex provides since c++20 also constexpr members.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
177 177
178 178 //! Return the sign of the value
179 179 template <class T>
180 int sign(const T& val)
180 constexpr int sign(const T& val)
  • Santiago Ospina De Los Ríos approved this merge request

    approved this merge request

  • mentioned in commit d46fc4f1

  • Please register or sign in to reply
    Loading