forked from NVIDIA/cccl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
thrust::complex
as a struct derived from `cuda::std::compl…
…ex` (NVIDIA#454) * Replace `thrust::complex` with `std::complex` There are some notable differences though. thrust::complex has been a bit more lenient when determining the type of arithmetic operations. That said, I believe being more strict is actually a feature not a bug * Refactor thrust::complex as a struct derived from cuda::std::complex This commit refactors the thrust::complex type to be a struct derived from cuda::std::complex, enabling reuse of existing implementation logic. However, to maintain backward compatibility, certain operators are reintroduced to allow type promotion between 'float' and 'double' for the underlying type. * Make `thrust::complex` compile * Remove obsolete test * Fix complex build for gcc-12 * Use template evaluation short circuit for `complex` assignment operator. * [skip-tests] Update the license after complete reimplementation of complex --------- Co-authored-by: Michael Schellenberger Costa <[email protected]>
- Loading branch information
Showing
29 changed files
with
552 additions
and
5,549 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
libcudacxx/.upstream-tests/test/std/numerics/complex.number/complex/types.fail.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.