numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Namespace of internal implementations. More...
Functions | |
auto | quick_two_sum (double a, double b) -> std::tuple< double, double > |
calculate sum of a and b, and error of the sum on the condition that absolute value of a is larger than one of b | |
auto | split (double a) -> std::tuple< double, double > |
split a number to higher bits and lower bits | |
auto | two_prod (double a, double b) -> std::tuple< double, double > |
calculate product of a and b, and error of the product | |
auto | two_prod_no_fma (double a, double b) -> std::tuple< double, double > |
calculate product of a and b, and error of the product without FMA instructions | |
auto | two_sum (double a, double b) -> std::tuple< double, double > |
calculate sum of a and b, and error of the sum | |
Namespace of internal implementations.
|
inline |
calculate sum of a and b, and error of the sum on the condition that absolute value of a is larger than one of b
[in] | a | a number |
[in] | b | a number |
Definition at line 44 of file basic_operations.h.
|
inline |
split a number to higher bits and lower bits
[in] | a | a number |
Definition at line 70 of file basic_operations.h.
|
inline |
calculate product of a and b, and error of the product
[in] | a | a number |
[in] | b | a number |
Definition at line 124 of file basic_operations.h.
|
inline |
calculate product of a and b, and error of the product without FMA instructions
[in] | a | a number |
[in] | b | a number |
Definition at line 86 of file basic_operations.h.
|
inline |
calculate sum of a and b, and error of the sum
[in] | a | a number |
[in] | b | a number |
Definition at line 57 of file basic_operations.h.