![]() |
imate
C++/CUDA Reference
|
Cast from float to __half and __nv_bfloat16 types and vice-versa, and float to double and vice-versa.
More...
Functions | |
| template<typename DataType > | |
| __host__ __device__ DataType | abs (const DataType x) |
| Absolute value of a floating point number. | |
| template<> | |
| __host__ __device__ float | abs< float > (const float x) |
Absolute value of a floating point number in __nv_fp8_e5m2 type. | |
| template<> | |
| __host__ __device__ double | abs< double > (const double x) |
Absolute value of a floating point number in double type. | |
| template<typename DataType > | |
| __host__ __device__ DataType | add (const DataType x, const DataType y) |
| Add two floating point numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | add< float > (const float x, const float y) |
Add two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | add< double > (const double x, const double y) |
Add two double type float numbers. | |
| template<typename DataType > | |
| __host__ __device__ DataType | add (const DataType x, const DataType y, const DataType z) |
| Add three floating point numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | add< float > (const float x, const float y, const float z) |
Add three __half type numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | add< double > (const double x, const double y, const double z) |
Add three double type numbers in round-to-nearest-even mode. | |
| template<typename InputDataType , typename OutputDataType > | |
| __host__ __device__ OutputDataType | cast (const InputDataType x) |
| Cast a floating point type to another floating point type. | |
| template<> | |
| __host__ __device__ float | cast< float, float > (const float x) |
Cast __nv_fp8_e5m2 type to float type. | |
| template<> | |
| __host__ __device__ double | cast< float, double > (const float x) |
Cast float type to double type. | |
| template<> | |
| __host__ __device__ double | cast< double, double > (const double x) |
Cast double type to double type (no action needed) | |
| template<> | |
| __host__ __device__ float | cast< double, float > (const double x) |
Cast double type to float type. | |
| template<> | |
| __host__ __device__ float | cast< int, float > (const int x) |
Cast int type to __nv_fp8_e5m2 type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ int | cast< float, int > (const float x) |
Cast float type to int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | cast< int, double > (const int x) |
Cast int type to double type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ int | cast< double, int > (const double x) |
Cast double type to int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | cast< unsigned int, float > (const unsigned int x) |
Cast unsigned int type to __nv_fp8_e5m2 type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ unsigned int | cast< float, unsigned int > (const float x) |
Cast float type to unsigned int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | cast< unsigned int, double > (const unsigned int x) |
Cast unsigned int type to double type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ unsigned int | cast< double, unsigned int > (const double x) |
Cast double type to unsigned int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | cast< long long int, float > (const long long int x) |
Cast long long int type to __nv_fp8_e5m2 type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ long long int | cast< float, long long int > (const float x) |
Cast float type to long long int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | cast< long long int, double > (const long long int x) |
Cast long long int type to double type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ long long int | cast< double, long long int > (const double x) |
Cast double type to long long int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | cast< unsigned long long int, float > (const unsigned long long int x) |
Cast unsigned long long int type to __nv_fp8_e5m2 type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ unsigned long long int | cast< float, unsigned long long int > (const float x) |
Cast float type to unsigned long long int type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | cast< unsigned long long int, double > (const unsigned long long int x) |
Cast unsigned long long int type to double type in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ unsigned long long int | cast< double, unsigned long long int > (const double x) |
Cast double type to unsigned long long int type in round-to-nearest-even mode. | |
| template<typename DataType > | |
| __host__ __device__ DataType | div (const DataType x, const DataType y) |
| Divide two floating point numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | div< float > (const float x, const float y) |
Divide two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | div< double > (const double x, const double y) |
Divide two double type numbers in round-to-nearest-even mode. | |
| template<typename DataType > | |
| __host__ __device__ DataType | epsilon () |
| epsilon for various floating point precisions. | |
| template<> | |
| __host__ __device__ float | epsilon< float > () |
epsilon for __nv_fp8_e5m2 type, which is equal to \( 2^{-2} \) since __nv_fp8_e5m2 has 2 bits for fraction (mantissa). | |
| template<> | |
| __host__ __device__ double | epsilon< double > () |
epsilon for float type, which is equal to \( 2^{-52}
\) since float has 52 bits for fraction (mantissa). | |
| template<typename DataType > | |
| bool | is_equal (DataType x, DataType y) |
| Check if two floating point numbers are equal within a tolerance. | |
| template<> | |
| bool | is_equal (float x, float y) |
Check if two floating point numbers are equal within a tolerance for __nv_fp8_e5m2 type. | |
| template<> | |
| bool | is_equal (double x, double y) |
Check if two floating point numbers are equal within a tolerance for double type. | |
| template<typename DataType > | |
| __host__ __device__ DataType | mul (const DataType x, const DataType y) |
| Multiply two floating point numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | mul< float > (const float x, const float y) |
Multiply two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | mul< double > (const double x, const double y) |
Multiply two double type numbers in round-to-nearest-even mode. | |
| template<typename DataType > | |
| __host__ __device__ DataType | mul (const DataType x, const DataType y, const DataType z) |
| Multiply three floating point numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | mul< float > (const float x, const float y, const float z) |
Multiply three __half numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | mul< double > (const double x, const double y, const double z) |
Multiply three double numbers in round-to-nearest-even mode. | |
| template<typename DataType > | |
| __host__ __device__ DataType | sub (const DataType x, const DataType y) |
| Subtract two floating point numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ float | sub< float > (const float x, const float y) |
Subtract two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode. | |
| template<> | |
| __host__ __device__ double | sub< double > (const double x, const double y) |
Subtract two double type float numbers. | |
Cast from float to __half and __nv_bfloat16 types and vice-versa, and float to double and vice-versa.
This namespace declares arithmetic functions in CUDA.
This namespace is a templated unifying API casting CUDA's types, including __half and __nv_bfloat16 types to float and vice-versa and float to double and vice-versa.
|
inline |
Absolute value of a floating point number.
| [in] | x | Operand. |
x Referenced by cuAffineMatrixFunction< DataType >::_add_scaled_vector(), cuTraceEstimator< DataType >::_cu_stochastic_lanczos_quadrature(), abs< double >(), abs< float >(), add< double >(), add< double >(), add< float >(), add< float >(), cast< double, double >(), cast< double, float >(), cast< double, int >(), cast< double, long long int >(), cast< double, unsigned int >(), cast< double, unsigned long long int >(), cast< float, double >(), cast< float, float >(), cast< float, int >(), cast< float, long long int >(), cast< float, unsigned int >(), cast< float, unsigned long long int >(), cast< int, double >(), cast< int, float >(), cast< long long int, double >(), cast< long long int, float >(), cast< unsigned int, double >(), cast< unsigned int, float >(), cast< unsigned long long int, double >(), cast< unsigned long long int, float >(), cu_golub_kahn_bidiagonalization(), cu_lanczos_tridiagonalization(), cublas_impl_kernels::cublasTaxpy_kernel(), cublas_impl::cublasTdot(), cublas_impl_kernels::cublasTdot_kernel(), cublas_impl_kernels::cublasTgemv_kernel(), cublas_impl::cublasTnrm2(), cublas_impl_kernels::cublasTnrm2_kernel(), cublas_impl_kernels::cublasTscal_kernel(), cuMatrixOperations< DataType >::dense_matvec(), cuMatrixOperations< DataType >::dense_matvec_plus(), cuMatrixOperations< DataType >::dense_transposed_matvec(), cuMatrixOperations< DataType >::dense_transposed_matvec_plus(), div< double >(), div< float >(), cuCSCMatrix< DataType >::dot(), cuCSRMatrix< DataType >::dot(), cuCSCMatrix< DataType >::dot_plus(), cuCSRMatrix< DataType >::dot_plus(), cuAffineMatrixFunction< DataType >::get_eigenvalue(), cuOrthogonalization< DataType >::gram_schmidt_process(), is_equal(), is_equal(), mul< double >(), mul< double >(), mul< float >(), mul< float >(), cuVectorOperations< DataType >::normalize_vector_and_copy(), cuVectorOperations< DataType >::normalize_vector_in_place(), cuOrthogonalization< DataType >::orthogonalize_vectors(), sub< double >(), sub< float >(), cuCSCMatrix< DataType >::transpose_dot(), cuCSRMatrix< DataType >::transpose_dot(), cuCSCMatrix< DataType >::transpose_dot_plus(), and cuCSRMatrix< DataType >::transpose_dot_plus().
|
inline |
Absolute value of a floating point number in double type.
| [in] | x | Operand. |
x Definition at line 198 of file _cu_abs.h.
References abs().

|
inline |
Absolute value of a floating point number in __nv_fp8_e5m2 type.
| [in] | x | Operand. |
x Absolute value of a floating point number in __nv_fp8_e4m3 type.
| [in] | x | Operand. |
x Absolute value of a floating point number in __half type.
| [in] | x | Operand. |
x Absolute value of a floating point number in __nv_bfloat16 type.
| [in] | x | Operand. |
x Absolute value of a floating point number in float type.
| [in] | x | Operand. |
x Definition at line 176 of file _cu_abs.h.
References abs().

Add two floating point numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y
|
inline |
Add three floating point numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.
|
inline |
Add two double type float numbers.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 221 of file _cu_add.h.
References abs().

|
inline |
Add three double type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Definition at line 365 of file _cu_add.h.
References abs().

|
inline |
Add two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Add two __nv_fp8_e4m3 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Add two __half type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Add two __nv_bfloat16 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Add two float type numbers.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 195 of file _cu_add.h.
References abs().

|
inline |
Add three __half type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Add three __nv_bfloat16 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Add three float type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Definition at line 335 of file _cu_add.h.
References abs().

|
inline |
Cast a floating point type to another floating point type.
| [in] | x | Input |
|
inline |
Cast double type to double type (no action needed)
| [in] | x | Input |
Definition at line 506 of file _cu_cast.h.
References abs().

|
inline |
Cast double type to float type.
| [in] | x | Input |
Definition at line 528 of file _cu_cast.h.
References abs().

|
inline |
Cast double type to int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 719 of file _cu_cast.h.
References abs().

|
inline |
Cast double type to long long int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1106 of file _cu_cast.h.
References abs().

|
inline |
Cast double type to unsigned int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 911 of file _cu_cast.h.
References abs().

|
inline |
Cast double type to unsigned long long int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1302 of file _cu_cast.h.
References abs().

|
inline |
Cast float type to double type.
| [in] | x | Input |
Definition at line 484 of file _cu_cast.h.
References abs().

|
inline |
Cast __nv_fp8_e5m2 type to float type.
| [in] | x | Input |
Cast float type to __nv_fp8_e5m2 type.
| [in] | x | Input |
Cast __nv_fp8_e5m2 type to double type.
| [in] | x | Input |
Cast double type to __nv_fp8_e5m2 type.
| [in] | x | Input |
Cast __nv_fp8_e4m3 type to float type.
| [in] | x | Input |
Cast float type to __nv_fp8_e4m3 type.
| [in] | x | Input |
Cast __nv_fp8_e4m3 type to double type.
| [in] | x | Input |
Cast double type to __nv_fp8_e4m3 type.
| [in] | x | Input |
Cast __half type to float type.
| [in] | x | Input |
Cast float type to __half type.
| [in] | x | Input |
Cast __half type to double type.
| [in] | x | Input |
Cast double type to __half type.
| [in] | x | Input |
Cast __nv_bfloat16 type to float type.
| [in] | x | Input |
Cast float type to __nv_bfloat16 type.
| [in] | x | Input |
Cast __nv_bfloat16 type to double type.
| [in] | x | Input |
Cast double type to __nv_bfloat16 type.
| [in] | x | Input |
Cast float type to float type (no action needed)
| [in] | x | Input |
Definition at line 462 of file _cu_cast.h.
References abs().

|
inline |
Cast float type to int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 673 of file _cu_cast.h.
References abs().

|
inline |
Cast float type to long long int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1060 of file _cu_cast.h.
References abs().

|
inline |
Cast float type to unsigned int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 865 of file _cu_cast.h.
References abs().

|
inline |
Cast float type to unsigned long long int type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1255 of file _cu_cast.h.
References abs().

|
inline |
Cast int type to double type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 696 of file _cu_cast.h.
References abs().

|
inline |
Cast int type to __nv_fp8_e5m2 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast int type to __nv_fp8_e4m3 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast int type to __half type in round-to-nearest-even mode.
| [in] | x | Input |
Cast int type to __nv_bfloat16 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast int type to float type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 650 of file _cu_cast.h.
References abs().

|
inline |
Cast long long int type to double type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1083 of file _cu_cast.h.
References abs().

|
inline |
Cast long long int type to __nv_fp8_e5m2 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast long long int type to __nv_fp8_e4m3 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast long long int type to __half type in round-to-nearest-even mode.
| [in] | x | Input |
Cast long long int type to __nv_bfloat16 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast long long int type to float type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1037 of file _cu_cast.h.
References abs().

|
inline |
Cast unsigned int type to double type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 888 of file _cu_cast.h.
References abs().

|
inline |
Cast unsigned int type to __nv_fp8_e5m2 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned int type to __nv_fp8_e4m3 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned int type to __half type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned
int type to __nv_bfloat16 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned int type to float type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 842 of file _cu_cast.h.
References abs().

|
inline |
Cast unsigned long long int type to double type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1279 of file _cu_cast.h.
References abs().

|
inline |
Cast unsigned long long int type to __nv_fp8_e5m2 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned long long int type to __nv_fp8_e4m3 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned long long int type to __half type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned
long long int type to __nv_bfloat16 type in round-to-nearest-even mode.
| [in] | x | Input |
Cast unsigned long long int type to float type in round-to-nearest-even mode.
| [in] | x | Input |
Definition at line 1232 of file _cu_cast.h.
References abs().

Divide two floating point numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Referenced by cuOrthogonalization< DataType >::gram_schmidt_process(), cuVectorOperations< DataType >::normalize_vector_and_copy(), cuVectorOperations< DataType >::normalize_vector_in_place(), and cuOrthogonalization< DataType >::orthogonalize_vectors().

|
inline |
Divide two double type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 223 of file _cu_div.h.
References abs().

|
inline |
Divide two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Divide two __nv_fp8_e4m3 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Divide two __half type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Divide two __nv_bfloat16 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Divide two float type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 196 of file _cu_div.h.
References abs().

|
inline |
epsilon for various floating point precisions.
__host__ function only, since std::numeric_limits cannot be called from a __device__ code.
|
inline |
epsilon for float type, which is equal to \( 2^{-52}
\) since float has 52 bits for fraction (mantissa).
Definition at line 190 of file _cu_epsilon.h.
|
inline |
epsilon for __nv_fp8_e5m2 type, which is equal to \( 2^{-2} \) since __nv_fp8_e5m2 has 2 bits for fraction (mantissa).
epsilon for __nv_fp8_e4m3 type, which is equal to \( 2^{-3} \) since __nv_fp8_e4m3 has 3 bits for fraction (mantissa).
epsilon for __half type, which is equal to \( 2^{-10}
\) since __half has 10 bits for fraction (mantissa).
epsilon for __nv_bfloat16 type, which is equal to \( 2^{-7} \) since __nv_bfloat16 has 7 bits for fraction (mantissa).
epsilon for float type, which is equal to \( 2^{-23}
\) since float has 23 bits for fraction (mantissa).
Definition at line 165 of file _cu_epsilon.h.
Check if two floating point numbers are equal within a tolerance.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false . Referenced by cuMatrixOperations< DataType >::dense_matvec_plus(), cuMatrixOperations< DataType >::dense_transposed_matvec_plus(), cuCSCMatrix< DataType >::is_identity_matrix(), cuCSRMatrix< DataType >::is_identity_matrix(), cuDenseMatrix< DataType >::is_identity_matrix(), and cuVectorOperations< DataType >::subtract_scaled_vector().

Check if two floating point numbers are equal within a tolerance for double type.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false . Definition at line 196 of file _cu_is_equal.h.
References abs().

Check if two floating point numbers are equal within a tolerance for __nv_fp8_e5m2 type.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false .Check if two floating point numbers are equal within a tolerance for __nv_fp8_e4m3 type.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false .Check if two floating point numbers are equal within a tolerance for __half type.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false .Check if two floating point numbers are equal within a tolerance for __nv_bfloat16 type.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false .Check if two floating point numbers are equal within a tolerance for float type.
| [in] | x | A floating point number |
| [in] | y | A floating point number |
true or false . Definition at line 167 of file _cu_is_equal.h.
References abs().

Multiply two floating point numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Referenced by cuTraceEstimator< DataType >::_cu_stochastic_lanczos_quadrature(), cu_golub_kahn_bidiagonalization(), cu_lanczos_tridiagonalization(), cuOrthogonalization< DataType >::gram_schmidt_process(), and cuOrthogonalization< DataType >::orthogonalize_vectors().

|
inline |
Multiply three floating point numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.
|
inline |
Multiply two double type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 223 of file _cu_mul.h.
References abs().

|
inline |
Multiply three double numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Definition at line 367 of file _cu_mul.h.
References abs().

|
inline |
Multiply two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Multiply two __nv_fp8_e4m3 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Multiply two __half type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Multiply two __nv_bfloat16 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Multiply two float type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 196 of file _cu_mul.h.
References abs().

|
inline |
Multiply three __half numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Multiply three __nv_bfloat16 numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Multiply three float numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
| [in] | z | Third operand. |
x, y, and z.Definition at line 337 of file _cu_mul.h.
References abs().

Subtract two floating point numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Referenced by cuOrthogonalization< DataType >::gram_schmidt_process().

|
inline |
Subtract two double type float numbers.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 221 of file _cu_sub.h.
References abs().

|
inline |
Subtract two __nv_fp8_e5m2 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Subtract two __nv_fp8_e4m3 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Subtract two __half type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Subtract two __nv_bfloat16 type numbers in round-to-nearest-even mode.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Subtract two float type numbers.
| [in] | x | First operand. |
| [in] | y | Second operand. |
x and y Definition at line 195 of file _cu_sub.h.
References abs().
