waLBerla 7.3
Loading...
Searching...
No Matches
walberla::math::SqrtTrait< T > Struct Template Reference

Detailed Description

template<typename T>
struct walberla::math::SqrtTrait< T >

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
floatfloat
integral data types and doubledouble
long doublelong double

#include <SqrtTrait.h>

Public Types

using Type = double
 Return type of std::sqrt for integral and double arguments.

Member Typedef Documentation

◆ Type

template<typename T>
using walberla::math::SqrtTrait< T >::Type = double

Return type of std::sqrt for integral and double arguments.


The documentation for this struct was generated from the following file:
  • /builds/administration/walberla-website/walberla/src/core/math/SqrtTrait.h