OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::opti::projection::Rectifier< T > Struct Template Reference

#include <projection.h>

+ Inheritance diagram for olb::opti::projection::Rectifier< T >:
+ Collaboration diagram for olb::opti::projection::Rectifier< T >:

Public Member Functions

project (T x) const override
 
derivative (T x) const override
 
inverse (T x) const override
 

Detailed Description

template<typename T>
struct olb::opti::projection::Rectifier< T >

Definition at line 87 of file projection.h.

Member Function Documentation

◆ derivative()

template<typename T >
T olb::opti::projection::Rectifier< T >::derivative ( T x) const
inlineoverridevirtual

Implements olb::opti::projection::Base< T >.

Definition at line 90 of file projection.h.

90{ return (x >= T(1) ? T(1)/(x*x) : T(0)); }

◆ inverse()

template<typename T >
T olb::opti::projection::Rectifier< T >::inverse ( T x) const
inlineoverridevirtual

Implements olb::opti::projection::Base< T >.

Definition at line 91 of file projection.h.

91{ return T(1)/(T(1)-x); }

◆ project()

template<typename T >
T olb::opti::projection::Rectifier< T >::project ( T x) const
inlineoverridevirtual

Implements olb::opti::projection::Base< T >.

Definition at line 89 of file projection.h.

89{ return T(1) - T(1)/util::max( T(1), x ); }
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:130

References olb::util::max().

+ Here is the call graph for this function:

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