![]() |
imate
C++/CUDA Reference
|
This namespace declares arithmetic functions in C. More...
Functions | |
| template<typename DataType > | |
| bool | is_equal (DataType x, DataType y) |
| Check if two floating point numbers are equal within a tolerance. | |
This namespace declares arithmetic functions in C.
|
inline |
Check if two floating point numbers are equal within a tolerance.
| [in] | x | A float number |
| [in] | y | A float number |
true or false . Definition at line 49 of file _c_is_equal.h.
Referenced by ConvergenceTools< DataType >::average_estimates(), ConvergenceTools< DataType >::check_convergence(), cMatrixOperations< DataType >::csc_matvec_plus(), cMatrixOperations< DataType >::csc_transposed_matvec_plus(), cMatrixOperations< DataType >::csr_matvec_plus(), cMatrixOperations< DataType >::csr_transposed_matvec_plus(), cMatrixOperations< DataType >::dense_matvec_plus(), cMatrixOperations< DataType >::dense_transposed_matvec_plus(), erf_inv(), cCSCMatrix< DataType >::is_identity_matrix(), cCSRMatrix< DataType >::is_identity_matrix(), cDenseMatrix< DataType >::is_identity_matrix(), and cVectorOperations< DataType >::subtract_scaled_vector().
