OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
olb::util::power< T > Struct Template Reference

Power function object. More...

#include <arithmetic.h>

+ Collaboration diagram for olb::util::power< T >:

Public Member Functions

constexpr T operator() (const T &base, const T &exponent) const
 

Static Public Attributes

static const char symbol = '^'
 symbol character for functor naming
 

Detailed Description

template<typename T>
struct olb::util::power< T >

Power function object.

Definition at line 88 of file arithmetic.h.

Member Function Documentation

◆ operator()()

template<typename T >
constexpr T olb::util::power< T >::operator() ( const T & base,
const T & exponent ) const
inlineconstexpr

Definition at line 92 of file arithmetic.h.

93 {
94 return util::pow(base, exponent);
95 }
cpu::simd::Pack< T > pow(cpu::simd::Pack< T > base, cpu::simd::Pack< T > exp)
Definition pack.h:112

References olb::util::pow().

+ Here is the call graph for this function:

Member Data Documentation

◆ symbol

template<typename T >
const char olb::util::power< T >::symbol = '^'
static

symbol character for functor naming

Definition at line 90 of file arithmetic.h.


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