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

L2 norm functor implementation details. More...

#include <latticeIntegralCommon.h>

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

Public Member Functions

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

Detailed Description

template<typename T, typename W>
struct olb::LpNormImpl< T, W, 2 >

L2 norm functor implementation details.

Definition at line 80 of file latticeIntegralCommon.h.

Member Function Documentation

◆ enclose()

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

Definition at line 85 of file latticeIntegralCommon.h.

86 {
87 return util::sqrt(output);
88 }
cpu::simd::Pack< T > sqrt(cpu::simd::Pack< T > value)
Definition pack.h:100

References olb::util::sqrt().

+ Here is the call graph for this function:

◆ operator()()

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

Definition at line 81 of file latticeIntegralCommon.h.

82 {
83 return output + tmp*tmp*weight;
84 }

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