Skip to content

Conversation

@mhoemmen
Copy link
Contributor

@mhoemmen mhoemmen commented Jan 28, 2026

@mhoemmen mhoemmen force-pushed the LWG4302 branch 2 times, most recently from 1e6aa7c to 4d49fad Compare January 28, 2026 17:37
* Remove vector_sum_of_squares from the public interface.
  This implements the proposed fix for LWG4302, that is now
  in the Working Draft for C++26.

* Fix Issue kokkos#320.  If the "init" argument of vector_two_norm
  is nonzero, return the square root of the ((square of init)
  and the (sum of squares of the absolute values of the
  elements of x)).
@mhoemmen
Copy link
Contributor Author

I've actually implemented a proposed fix for an LWG issue that I just filed, to use the square of the absolute value of init, rather than the square of init.

Copy link
Contributor

@youyu3 youyu3 left a comment

Choose a reason for hiding this comment

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

The implementation looks good to me. Thanks.

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.

3 participants