Complex numbers.
More...
Go to the source code of this file.
|
| template<typename T > |
| _CCCL_HOST_DEVICE T | cusp::conj (const T &z) |
| | Compute the complex conjugate of z. For real types, returns z unchanged.
|
| |
| template<typename T > |
| _CCCL_HOST_DEVICE cusp::norm_type< T >::type | cusp::abs (const T &z) |
| | Compute the absolute value of z.
|
| |
| template<typename T > |
| _CCCL_HOST_DEVICE cusp::norm_type< T >::type | cusp::norm (const T &z) |
| | Compute the norm of z.
|
| |
Complex numbers.
Definition in file complex.h.
◆ abs()
template<typename T >
| _CCCL_HOST_DEVICE cusp::norm_type< T >::type cusp::abs |
( |
const T & |
z | ) |
|
|
inline |
Compute the absolute value of z.
Definition at line 67 of file complex.h.
◆ conj()
template<typename T >
| _CCCL_HOST_DEVICE T cusp::conj |
( |
const T & |
z | ) |
|
|
inline |
Compute the complex conjugate of z. For real types, returns z unchanged.
Definition at line 57 of file complex.h.
◆ norm()
template<typename T >
| _CCCL_HOST_DEVICE cusp::norm_type< T >::type cusp::norm |
( |
const T & |
z | ) |
|
|
inline |
Compute the norm of z.
Definition at line 77 of file complex.h.