2.2. __half2 Struct Reference
[Half Precision Intrinsics]
This structure implements the datatype for storing two half-precision floating-point numbers. The structure implements assignment, arithmetic and comparison operators, and type conversions.
-
NOTE: __half2 is visible to non-nvcc host compilers
Public Constructors
- __host__ __device__ __half2 ( const __half2_raw& h2r )
- __host__ __device__ __half2 ( const __half2& src )
- __host__ __device__ __half2 ( const __half& a, const __half& b )
- __host__ __device__ __half2 ( )
Public Member Functions
- __host__ __device__ operator __half2_raw ( ) const
- __host__ __device__ __half2& operator= ( const __half2_raw& h2r )
- __host__ __device__ __half2& operator= ( const __half2& src )
Public Variables
Constructors
- __host__ __device__ __half2::__half2 ( const __half2_raw& h2r ) [inline]
-
Description
Constructor from __half2_raw
- __host__ __device__ __half2::__half2 ( const __half2& src ) [inline]
-
Description
Copy constructor
- __host__ __device__ __half2::__half2 ( const __half& a, const __half& b ) [inline]
-
Description
Constructor from two __half variables
- __host__ __device__ __half2::__half2 ( ) [inline]
-
Description
Constructor by default.
Member Functions
- __host__ __device__ __half2::operator __half2_raw ( ) const [inherited]
-
Description
Conversion operator to __half2_raw
- __host__ __device__ __half2& __half2::operator= ( const __half2_raw& h2r ) [inherited]
-
Description
Assignment operator from __half2_raw
- __host__ __device__ __half2& __half2::operator= ( const __half2& src ) [inherited]
-
Description
Copy assignment operator