Stratax 0.3.1
Loading...
Searching...
No Matches
stratax::core::math_detail::PowResult< L, R > Struct Template Reference

Determines the common result dtype for a binary math operation. More...

#include <Math.hpp>

Public Types

using promoted_type = promote_t< std::remove_cvref_t< L >, std::remove_cvref_t< R > >
 Dtype obtained from the ordinary Stratax promotion rules.
 
using type = std::conditional_t< Integral< promoted_type >, dtype::float64, promoted_type >
 Promoted dtype, with integral-only results changed to float64.
 

Detailed Description

template<typename L, typename R>
struct stratax::core::math_detail::PowResult< L, R >

Determines the common result dtype for a binary math operation.

Definition at line 73 of file Math.hpp.

Member Typedef Documentation

◆ promoted_type

template<typename L , typename R >
using stratax::core::math_detail::PowResult< L, R >::promoted_type = promote_t< std::remove_cvref_t<L>, std::remove_cvref_t<R> >

Dtype obtained from the ordinary Stratax promotion rules.

Definition at line 76 of file Math.hpp.

◆ type

template<typename L , typename R >
using stratax::core::math_detail::PowResult< L, R >::type = std::conditional_t< Integral<promoted_type>, dtype::float64, promoted_type>

Promoted dtype, with integral-only results changed to float64.

Definition at line 82 of file Math.hpp.


The documentation for this struct was generated from the following file: