Skip to content

Commit

Permalink
Norm signature
Browse files Browse the repository at this point in the history
  • Loading branch information
drohmer committed Feb 22, 2024
1 parent 973df76 commit c7d1edd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ namespace cgp
// otherwise return default_zero_norm vector (without error)
template <typename T, int N> numarray_stack<T, N> normalize(numarray_stack<T, N> const& v, numarray_stack<T, N> const& default_zero_norm);

// Return ||v|| in the standard norm
template <typename T, int N> T norm(numarray_stack<T, N> const& v);

// Math operators applied to each component
template <typename T, int N> T max(numarray_stack<T, N> const& v);
template <typename T, int N> T min(numarray_stack<T, N> const& v);
Expand Down

0 comments on commit c7d1edd

Please sign in to comment.