OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::LpNormImpl< T, W, P > Struct Template Reference

Lp norm functor implementation details specific to the P parameter. More...

#include <latticeIntegralCommon.h>

+ Collaboration diagram for olb::LpNormImpl< T, W, P >:

Public Member Functions

operator() (W output, W tmp, T weight)
 
enclose (W output)
 

Detailed Description

template<typename T, typename W, int P>
struct olb::LpNormImpl< T, W, P >

Lp norm functor implementation details specific to the P parameter.

Used in BlockLpNorm2D, BlockLpNorm3D, SuperLpNorm2D and SuperLpNorm3D.

Definition at line 35 of file latticeIntegralCommon.h.

Member Function Documentation

◆ enclose()

template<typename T , typename W , int P>
W olb::LpNormImpl< T, W, P >::enclose ( W output)
inline

Definition at line 47 of file latticeIntegralCommon.h.

48{
49 return util::pow(output, 1. / P);
50}
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:
+ Here is the caller graph for this function:

◆ operator()()

template<typename T , typename W , int P>
W olb::LpNormImpl< T, W, P >::operator() ( W output,
W tmp,
T weight )
inline

Definition at line 41 of file latticeIntegralCommon.h.

42{
43 return output + util::pow(util::fabs(tmp), P)*weight;
44}
cpu::simd::Pack< T > fabs(cpu::simd::Pack< T > value)
Definition pack.h:106

References olb::util::fabs(), and olb::util::pow().

+ Here is the call graph for this function:

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