Base template for the SqrtTrait class.
The SqrtTrait template evaluates the return type of the std::sqrt function depending on the type of the argument. In case of an integral data type, the return value of the std::sqrt function is double, whereas the return type is float for single precision arguments and long double for long double precision arguments.
Template argument T | Type |
float | float |
integral data types and double | double |
long double | long double |
#include <SqrtTrait.h>
Public Types | |
using | Type = double |
Return type of std::sqrt for integral and double arguments. More... | |
using walberla::math::SqrtTrait< T >::Type = double |
Return type of std::sqrt for integral and double arguments.