numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_collect::multi_double::impl Namespace Reference

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
 

Detailed Description

Namespace of internal implementations.

Function Documentation

◆ quick_two_sum()

auto num_collect::multi_double::impl::quick_two_sum ( double a,
double b ) -> std::tuple<double, double>
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

Parameters
[in]aa number
[in]ba number
Returns
sum of a and b, and error of sum

Definition at line 44 of file basic_operations.h.

◆ split()

auto num_collect::multi_double::impl::split ( double a) -> std::tuple<double, double>
inline

split a number to higher bits and lower bits

Parameters
[in]aa number
Returns
higher bits and lower bits

Definition at line 70 of file basic_operations.h.

◆ two_prod()

auto num_collect::multi_double::impl::two_prod ( double a,
double b ) -> std::tuple<double, double>
inline

calculate product of a and b, and error of the product

Parameters
[in]aa number
[in]ba number
Returns
product of a and b, and error of product

Definition at line 124 of file basic_operations.h.

◆ two_prod_no_fma()

auto num_collect::multi_double::impl::two_prod_no_fma ( double a,
double b ) -> std::tuple<double, double>
inline

calculate product of a and b, and error of the product without FMA instructions

Parameters
[in]aa number
[in]ba number
Returns
product of a and b, and error of product

Definition at line 86 of file basic_operations.h.

◆ two_sum()

auto num_collect::multi_double::impl::two_sum ( double a,
double b ) -> std::tuple<double, double>
inline

calculate sum of a and b, and error of the sum

Parameters
[in]aa number
[in]ba number
Returns
sum of a and b, and error of sum

Definition at line 57 of file basic_operations.h.